3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("Internal/Utility/PageTurnLandscapeView")]
13 public class InternalPageTurnLandscapeViewTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("PageTurnLandscapeView constructor.")]
32 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.PageTurnLandscapeView C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void PageTurnLandscapeViewConstructor()
38 tlog.Debug(tag, $"PageTurnLandscapeViewConstructor START");
40 using (View view = new View())
42 var testingTarget = new PageTurnLandscapeView(view.SwigCPtr.Handle, false);
43 Assert.IsNotNull(testingTarget, "Should be not null!");
44 Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
46 testingTarget.Dispose();
49 tlog.Debug(tag, $"PageTurnLandscapeViewConstructor END (OK)");
54 [Description("PageTurnLandscapeView constructor. With PageTurnLandscapeView.")]
55 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.PageTurnLandscapeView C")]
56 [Property("SPEC_URL", "-")]
57 [Property("CRITERIA", "CONSTR")]
58 [Property("AUTHOR", "guowei.wang@samsung.com")]
59 public void PageTurnLandscapeViewConstructorWithPageTurnLandscapeView()
61 tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWithPageTurnLandscapeView START");
63 using (View view = new View())
65 using (PageTurnLandscapeView landscapeView = new PageTurnLandscapeView(view.SwigCPtr.Handle, false))
67 var testingTarget = new PageTurnLandscapeView(landscapeView);
68 Assert.IsNotNull(testingTarget, "Should be not null!");
69 Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
71 testingTarget.Dispose();
75 tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWithPageTurnLandscapeView END (OK)");
80 [Description("PageTurnLandscapeView DownCast.")]
81 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.DownCast M")]
82 [Property("SPEC_URL", "-")]
83 [Property("CRITERIA", "MR")]
84 [Property("AUTHOR", "guowei.wang@samsung.com")]
85 public void PageTurnLandscapeViewDownCast()
87 tlog.Debug(tag, $"PageTurnLandscapeViewDownCast START");
89 using (View view = new View())
91 var testingTarget = new PageTurnLandscapeView(view.SwigCPtr.Handle, false);
92 Assert.IsNotNull(testingTarget, "Should be not null!");
93 Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
97 PageTurnLandscapeView.DownCast(testingTarget);
101 tlog.Debug(tag, e.Message.ToString());
102 Assert.Fail("Caught Exception: Failed!");
105 testingTarget.Dispose();
108 tlog.Debug(tag, $"PageTurnLandscapeViewDownCast END (OK)");
113 [Description("PageTurnLandscapeView Assign.")]
114 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.Assign M")]
115 [Property("SPEC_URL", "-")]
116 [Property("CRITERIA", "MR")]
117 [Property("AUTHOR", "guowei.wang@samsung.com")]
118 public void PageTurnLandscapeViewAssign()
120 tlog.Debug(tag, $"PageTurnLandscapeViewAssign START");
122 using (View view = new View())
124 var testingTarget = new PageTurnLandscapeView(view.SwigCPtr.Handle, false);
125 Assert.IsNotNull(testingTarget, "Should be not null!");
126 Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
130 testingTarget.Assign(testingTarget);
134 tlog.Debug(tag, e.Message.ToString());
135 Assert.Fail("Caught Exception: Failed!");
138 testingTarget.Dispose();
141 tlog.Debug(tag, $"PageTurnLandscapeViewAssign END (OK)");