2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 using System.Collections.Generic;
22 namespace ElmSharp.Test
24 public class EvasImageTest2 : TestCaseBase
26 public override string TestName => "EvasImageTest2";
27 public override string TestDescription => "To test EvasImage";
29 public override void Run(Window window)
31 Conformant conformant = new Conformant(window);
33 Box box = new Box(window);
34 conformant.SetContent(box);
37 Image realObject2 = new Image(window)
44 realObject2.Load(Path.Combine(TestRunner.ResourceDir, "picture.png"));
47 EvasImage img1 = new EvasImage(window)
55 img1.File = Path.Combine(TestRunner.ResourceDir, "picture.png");
58 EvasImage img2 = new EvasImage(window)
66 img2.SetStream(new FileStream(Path.Combine(TestRunner.ResourceDir, "picture.png"), FileMode.Open, FileAccess.Read));
69 EvasImage img3 = new EvasImage(window)
77 img3.SetSource(realObject2);
79 img3.IsSourceVisible = true;
81 box.PackEnd(realObject2);