Add Image Testcase
[platform/core/csapi/tizenfx.git] / test / ElmSharp.Test / TC / ImageTest1.cs
1 using System;
2 using ElmSharp;
3 using System.Collections.Generic;
4
5 namespace ElmSharp.Test
6 {
7     public class ImageTest1 : TestCaseBase
8     {
9         public override string TestName => "ImageTest1";
10         public override string TestDescription => "To test basic operation of Image";
11
12         public override void Run(Window window)
13         {
14             Image image = new Image(window)
15             {
16                 IsFixedAspect = false
17             };
18             image.Load("/home/owner/res/picture.png");
19             image.Clicked += (e, o) =>
20             {
21                 Console.WriteLine("Image has been clicked. (IsFixedAspect = {0}", image.IsFixedAspect);
22                 image.IsFixedAspect = image.IsFixedAspect == true?false:true;
23             };
24
25             image.Show();
26             image.Resize(500, 500);
27             image.Move(100,100);
28         }
29     }
30 }