3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Collections.Generic;
7 using System.Threading.Tasks;
9 namespace Tizen.NUI.Devel.Tests
11 using tlog = Tizen.Log;
14 [Description("public/Transition/Fade.cs")]
15 public class PublicFadeTest
17 private const string tag = "NUITEST";
22 tlog.Info(tag, "Init() is called!");
28 tlog.Info(tag, "Destroy() is called!");
33 [Description("Fade constructor.")]
34 [Property("SPEC", "Tizen.NUI.Fade.Fade C")]
35 [Property("SPEC_URL", "-")]
36 [Property("CRITERIA", "CONSTR")]
37 [Property("AUTHOR", "guowei.wang@samsung.com")]
38 public void FadeConstructor()
40 tlog.Debug(tag, $"FadeConstructor START");
42 var testingTarget = new Fade();
43 Assert.IsNotNull(testingTarget, "Can't create success object Fade");
44 Assert.IsInstanceOf<Fade>(testingTarget, "Should be an instance of Fade type.");
46 testingTarget.Dispose();
48 tlog.Debug(tag, $"FadeConstructor END (OK)");
53 [Description("Fade Opacity.")]
54 [Property("SPEC", "Tizen.NUI.Fade.Opacity A")]
55 [Property("SPEC_URL", "-")]
56 [Property("CRITERIA", "PRW")]
57 [Property("AUTHOR", "guowei.wang@samsung.com")]
58 public void FadeOpacity()
60 tlog.Debug(tag, $"FadeOpacity START");
62 var testingTarget = new Fade();
63 Assert.IsNotNull(testingTarget, "Can't create success object Fade");
64 Assert.IsInstanceOf<Fade>(testingTarget, "Should be an instance of Fade type.");
66 testingTarget.Opacity = 0.3f;
67 tlog.Debug(tag, testingTarget.Opacity.ToString());
69 testingTarget.Dispose();
70 tlog.Debug(tag, $"FadeOpacity END (OK)");
75 [Description("Fade CreateTransition.")]
76 [Property("SPEC", "Tizen.NUI.Fade.CreateTransition M")]
77 [Property("SPEC_URL", "-")]
78 [Property("CRITERIA", "MR")]
79 [Property("AUTHOR", "guowei.wang@samsung.com")]
80 public void FadeCreateTransition()
82 tlog.Debug(tag, $"FadeCreateTransition START");
84 var testingTarget = new Fade();
85 Assert.IsNotNull(testingTarget, "Can't create success object Fade");
86 Assert.IsInstanceOf<Fade>(testingTarget, "Should be an instance of Fade type.");
88 using (View view = new View())
92 testingTarget.CreateTransition(view, false);
96 tlog.Debug(tag, e.Message.ToString());
97 Assert.Fail("Caught Exception : Falied!");
101 testingTarget.Dispose();
102 tlog.Debug(tag, $"FadeCreateTransition END (OK)");