4 using System.Collections.Generic;
6 namespace ElmSharp.Test
8 public class ImageTest1 : TestCaseBase
10 public override string TestName => "ImageTest1";
11 public override string TestDescription => "To test basic operation of Image";
13 public override void Run(Window window)
15 Image image = new Image(window)
19 image.Load(Path.Combine(TestRunner.ResourceDir, "picture.png"));
20 image.Clicked += (e, o) =>
22 Console.WriteLine("Image has been clicked. (IsFixedAspect = {0}", image.IsFixedAspect);
23 image.IsFixedAspect = image.IsFixedAspect == true?false:true;
27 image.Resize(500, 500);