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 getCPtr.")]
81 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.getCPtr M")]
82 [Property("SPEC_URL", "-")]
83 [Property("CRITERIA", "MR")]
84 [Property("AUTHOR", "guowei.wang@samsung.com")]
85 public void PageTurnLandscapeViewGetCPtr()
87 tlog.Debug(tag, $"PageTurnLandscapeViewGetCPtr 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.getCPtr(testingTarget);
101 tlog.Debug(tag, e.Message.ToString());
102 Assert.Fail("Caught Exception: Failed!");
105 testingTarget.Dispose();
108 tlog.Debug(tag, $"PageTurnLandscapeViewGetCPtr END (OK)");
113 [Description("PageTurnLandscapeView DownCast.")]
114 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.DownCast M")]
115 [Property("SPEC_URL", "-")]
116 [Property("CRITERIA", "MR")]
117 [Property("AUTHOR", "guowei.wang@samsung.com")]
118 public void PageTurnLandscapeViewDownCast()
120 tlog.Debug(tag, $"PageTurnLandscapeViewDownCast 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 PageTurnLandscapeView.DownCast(testingTarget);
134 tlog.Debug(tag, e.Message.ToString());
135 Assert.Fail("Caught Exception: Failed!");
138 testingTarget.Dispose();
141 tlog.Debug(tag, $"PageTurnLandscapeViewDownCast END (OK)");
146 [Description("PageTurnLandscapeView Assign.")]
147 [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.Assign M")]
148 [Property("SPEC_URL", "-")]
149 [Property("CRITERIA", "MR")]
150 [Property("AUTHOR", "guowei.wang@samsung.com")]
151 public void PageTurnLandscapeViewAssign()
153 tlog.Debug(tag, $"PageTurnLandscapeViewAssign START");
155 using (View view = new View())
157 var testingTarget = new PageTurnLandscapeView(view.SwigCPtr.Handle, false);
158 Assert.IsNotNull(testingTarget, "Should be not null!");
159 Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
163 testingTarget.Assign(testingTarget);
167 tlog.Debug(tag, e.Message.ToString());
168 Assert.Fail("Caught Exception: Failed!");
171 testingTarget.Dispose();
174 tlog.Debug(tag, $"PageTurnLandscapeViewAssign END (OK)");
179 //[Description("PageTurnLandscapeView constructor.")]
180 //[Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.PageTurnLandscapeView C")]
181 //[Property("SPEC_URL", "-")]
182 //[Property("CRITERIA", "CONSTR")]
183 //[Property("AUTHOR", "guowei.wang@samsung.com")]
184 //public void PageTurnLandscapeViewConstructorWith2Parameters()
186 // tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWith2Parameters START");
188 // using (View view = new View())
190 // using (PageFactory pageFactory = new PageFactory(view.SwigCPtr.Handle, true))
192 // using (Vector2 pageSize = new Vector2(100, 50))
194 // var testingTarget = new PageTurnLandscapeView(pageFactory, pageSize);
195 // Assert.IsNotNull(testingTarget, "Should be not null!");
196 // Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
198 // testingTarget.Dispose();
203 // tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWith2Parameters END (OK)");