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/ItemView")]
13 public class InternalItemViewTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("ItemView constructor.")]
32 [Property("SPEC", "Tizen.NUI.ItemView.ItemView C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void ItemViewConstructor()
38 tlog.Debug(tag, $"ItemViewConstructor START");
40 using (View view = new View())
42 var testingTarget = new ItemView(view.SwigCPtr.Handle, false);
43 Assert.IsNotNull(testingTarget, "Should be not null!");
44 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
46 tlog.Debug(tag, " LayoutCount : " + testingTarget.GetLayoutCount());
48 testingTarget.Dispose();
51 tlog.Debug(tag, $"ItemViewConstructor END (OK)");
56 [Description("ItemView constructor. With ItemFactory.")]
57 [Property("SPEC", "Tizen.NUI.ItemView.Layout C")]
58 [Property("SPEC_URL", "-")]
59 [Property("CRITERIA", "PRW")]
60 [Property("AUTHOR", "guowei.wang@samsung.com")]
61 public void ItemViewConstructorWithItemFactory()
63 tlog.Debug(tag, $"ItemViewConstructorWithItemFactory START");
65 using (ItemFactory factory = new ItemFactory())
67 var testingTarget = new ItemView(factory);
68 Assert.IsNotNull(testingTarget, "Should be not null!");
69 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
71 testingTarget.Dispose();
74 tlog.Debug(tag, $"ItemViewConstructorWithItemFactory END (OK)");
79 [Description("ItemView Layout.")]
80 [Property("SPEC", "Tizen.NUI.ItemView.Layout A")]
81 [Property("SPEC_URL", "-")]
82 [Property("CRITERIA", "PRW")]
83 [Property("AUTHOR", "guowei.wang@samsung.com")]
84 public void ItemViewLayout()
86 tlog.Debug(tag, $"ItemViewLayout START");
88 using (ItemFactory factory = new ItemFactory())
90 var testingTarget = new ItemView(factory);
91 Assert.IsNotNull(testingTarget, "Should be not null!");
92 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
94 using (PropertyArray propertyArray = new PropertyArray())
96 propertyArray.Add(new PropertyValue(new Size2D(100, 80)));
97 testingTarget.Layout = propertyArray;
101 testingTarget.Layout = propertyArray;
102 tlog.Debug(tag, "Layout : " + testingTarget.Layout);
106 tlog.Debug(tag, e.Message.ToString());
107 Assert.Fail("Caught Exception: Failed!");
111 testingTarget.Dispose();
114 tlog.Debug(tag, $"ItemViewLayout END (OK)");
119 [Description("ItemView AddLayout.")]
120 [Property("SPEC", "Tizen.NUI.ItemView.AddLayout M")]
121 [Property("SPEC_URL", "-")]
122 [Property("CRITERIA", "MR")]
123 [Property("AUTHOR", "guowei.wang@samsung.com")]
124 public void ItemViewAddLayout()
126 tlog.Debug(tag, $"ItemViewAddLayout START");
128 using (ItemFactory factory = new ItemFactory())
130 var testingTarget = new ItemView(factory);
131 Assert.IsNotNull(testingTarget, "Should be not null!");
132 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
134 testingTarget.AddLayout(new ItemLayout(testingTarget.SwigCPtr.Handle, true));
136 testingTarget.Dispose();
139 tlog.Debug(tag, $"ItemViewAddLayout END (OK)");
144 [Description("ItemView RemoveLayout.")]
145 [Property("SPEC", "Tizen.NUI.ItemView.RemoveLayout M")]
146 [Property("SPEC_URL", "-")]
147 [Property("CRITERIA", "MR")]
148 [Property("AUTHOR", "guowei.wang@samsung.com")]
149 public void ItemViewRemoveLayout()
151 tlog.Debug(tag, $"ItemViewRemoveLayout START");
153 using (ItemFactory factory = new ItemFactory())
155 var testingTarget = new ItemView(factory);
156 Assert.IsNotNull(testingTarget, "Should be not null!");
157 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
159 testingTarget.AddLayout(new ItemLayout(testingTarget.SwigCPtr.Handle, true));
160 tlog.Debug(tag, " LayoutCount : " + testingTarget.GetLayoutCount());
164 testingTarget.RemoveLayout((uint)testingTarget.LayoutPosition);
165 tlog.Debug(tag, " LayoutCount : " + testingTarget.GetLayoutCount());
169 tlog.Debug(tag, e.Message.ToString());
170 Assert.Fail("Caught Exception: Failed!");
173 testingTarget.Dispose();
176 tlog.Debug(tag, $"ItemViewRemoveLayout END (OK)");
181 [Description("ItemView DownCast.")]
182 [Property("SPEC", "Tizen.NUI.ItemView.Layout M")]
183 [Property("SPEC_URL", "-")]
184 [Property("CRITERIA", "MR")]
185 [Property("AUTHOR", "guowei.wang@samsung.com")]
186 public void ItemViewDownCast()
188 tlog.Debug(tag, $"ItemViewDownCast START");
190 using (ItemFactory factory = new ItemFactory())
192 using (ItemView view = new ItemView(factory))
194 var testingTarget = ItemView.DownCast(view);
195 Assert.IsNotNull(testingTarget, "Should be not null!");
196 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
198 testingTarget.Dispose();
202 tlog.Debug(tag, $"ItemViewDownCast END (OK)");
207 [Description("ItemView GetLayout.")]
208 [Property("SPEC", "Tizen.NUI.ItemView.GetLayout M")]
209 [Property("SPEC_URL", "-")]
210 [Property("CRITERIA", "MR")]
211 [Property("AUTHOR", "guowei.wang@samsung.com")]
212 public void ItemViewGetLayout()
214 tlog.Debug(tag, $"ItemViewGetLayout START");
216 using (ItemFactory factory = new ItemFactory())
218 var testingTarget = new ItemView(factory);
219 Assert.IsNotNull(testingTarget, "Should be not null!");
220 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
222 testingTarget.AddLayout(new ItemLayout(testingTarget.SwigCPtr.Handle, true));
226 testingTarget.GetLayout((uint)testingTarget.LayoutPosition);
230 tlog.Debug(tag, e.Message.ToString());
231 Assert.Fail("Caught Exception: Failed!");
234 testingTarget.Dispose();
237 tlog.Debug(tag, $"ItemViewGetLayout END (OK)");
242 [Description("ItemView GetActiveLayout.")]
243 [Property("SPEC", "Tizen.NUI.ItemView.GetActiveLayout M")]
244 [Property("SPEC_URL", "-")]
245 [Property("CRITERIA", "MR")]
246 [Property("AUTHOR", "guowei.wang@samsung.com")]
247 public void ItemViewGetActiveLayout()
249 tlog.Debug(tag, $"ItemViewGetActiveLayout START");
251 using (ItemFactory factory = new ItemFactory())
253 var testingTarget = new ItemView(factory);
254 Assert.IsNotNull(testingTarget, "Should be not null!");
255 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
257 testingTarget.AddLayout(new ItemLayout(testingTarget.SwigCPtr.Handle, true));
261 testingTarget.GetActiveLayout();
265 tlog.Debug(tag, e.Message.ToString());
266 Assert.Fail("Caught Exception: Failed!");
269 testingTarget.Dispose();
272 tlog.Debug(tag, $"ItemViewGetActiveLayout END (OK)");
277 [Description("ItemView InsertItem.")]
278 [Property("SPEC", "Tizen.NUI.ItemView.InsertItem M")]
279 [Property("SPEC_URL", "-")]
280 [Property("CRITERIA", "MR")]
281 [Property("AUTHOR", "guowei.wang@samsung.com")]
282 public void ItemViewInsertItem()
284 tlog.Debug(tag, $"ItemViewInsertItem START");
286 using (ItemFactory factory = new ItemFactory())
288 var testingTarget = new ItemView(factory);
289 Assert.IsNotNull(testingTarget, "Should be not null!");
290 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
294 using (Item item = new Item())
296 testingTarget.InsertItem(new Item(), 30.0f);
301 tlog.Debug(tag, e.Message.ToString());
302 Assert.Fail("Caught Exception: Failed!");
305 testingTarget.Dispose();
308 tlog.Debug(tag, $"ItemViewInsertItem END (OK)");
313 [Description("ItemView RemoveItem.")]
314 [Property("SPEC", "Tizen.NUI.ItemView.RemoveItem M")]
315 [Property("SPEC_URL", "-")]
316 [Property("CRITERIA", "MR")]
317 [Property("AUTHOR", "guowei.wang@samsung.com")]
318 public void ItemViewRemoveItem()
320 tlog.Debug(tag, $"ItemViewRemoveItem START");
322 using (ItemFactory factory = new ItemFactory())
324 var testingTarget = new ItemView(factory);
325 Assert.IsNotNull(testingTarget, "Should be not null!");
326 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
328 using (Item item = new Item())
330 testingTarget.InsertItem(item, 30.0f);
332 var id = testingTarget.GetLayoutCount() - 1;
333 testingTarget.RemoveItem(id, 0.5f);
336 testingTarget.Dispose();
339 tlog.Debug(tag, $"ItemViewRemoveItem END (OK)");
344 [Description("ItemView SetItemsAnchorPoint.")]
345 [Property("SPEC", "Tizen.NUI.ItemView.SetItemsAnchorPoint M")]
346 [Property("SPEC_URL", "-")]
347 [Property("CRITERIA", "MR")]
348 [Property("AUTHOR", "guowei.wang@samsung.com")]
349 public void ItemViewSetItemsAnchorPoint()
351 tlog.Debug(tag, $"ItemViewSetItemsAnchorPoint START");
353 using (ItemFactory factory = new ItemFactory())
355 var testingTarget = new ItemView(factory);
356 Assert.IsNotNull(testingTarget, "Should be not null!");
357 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
359 using (Vector3 vector = new Vector3(100.0f, 30.0f, 200.0f))
361 testingTarget.SetItemsAnchorPoint(vector);
362 Assert.AreEqual(100.0f, testingTarget.GetItemsAnchorPoint().X, "Should be equal!");
363 Assert.AreEqual(30.0f, testingTarget.GetItemsAnchorPoint().Y, "Should be equal!");
364 Assert.AreEqual(200.0f, testingTarget.GetItemsAnchorPoint().Z, "Should be equal!");
367 testingTarget.Dispose();
370 tlog.Debug(tag, $"ItemViewSetItemsAnchorPoint END (OK)");
375 [Description("ItemView GetItemsRange.")]
376 [Property("SPEC", "Tizen.NUI.ItemView.GetItemsRange M")]
377 [Property("SPEC_URL", "-")]
378 [Property("CRITERIA", "MR")]
379 [Property("AUTHOR", "guowei.wang@samsung.com")]
380 public void ItemViewGetItemsRange()
382 tlog.Debug(tag, $"ItemViewGetItemsRange START");
384 using (ItemFactory factory = new ItemFactory())
386 var testingTarget = new ItemView(factory);
387 Assert.IsNotNull(testingTarget, "Should be not null!");
388 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
392 using (ItemRange range = new ItemRange(0, 300))
394 testingTarget.GetItemsRange(range);
399 tlog.Debug(tag, e.Message.ToString());
400 Assert.Fail("Caught Exception: Failed!");
403 testingTarget.Dispose();
406 tlog.Debug(tag, $"ItemViewGetItemsRange END (OK)");
411 [Description("ItemView SetAnchoring.")]
412 [Property("SPEC", "Tizen.NUI.ItemView.SetAnchoring M")]
413 [Property("SPEC_URL", "-")]
414 [Property("CRITERIA", "MR")]
415 [Property("AUTHOR", "guowei.wang@samsung.com")]
416 public void ItemViewSetAnchoring()
418 tlog.Debug(tag, $"ItemViewSetAnchoring START");
420 using (ItemFactory factory = new ItemFactory())
422 using (ItemView itemView = new ItemView(factory))
424 itemView.SetAnchoring(true);
425 Assert.AreEqual(true, itemView.GetAnchoring(), "Should be equal!");
427 itemView.SetAnchoring(false);
428 Assert.AreEqual(false, itemView.GetAnchoring(), "Should be equal!");
432 tlog.Debug(tag, $"ItemViewSetAnchoring END (OK)");
437 [Description("ItemView SetAnchoringDuration.")]
438 [Property("SPEC", "Tizen.NUI.ItemView.SetAnchoringDuration M")]
439 [Property("SPEC_URL", "-")]
440 [Property("CRITERIA", "MR")]
441 [Property("AUTHOR", "guowei.wang@samsung.com")]
442 public void ItemViewSetAnchoringDuration()
444 tlog.Debug(tag, $"ItemViewSetAnchoringDuration START");
446 using (ItemFactory factory = new ItemFactory())
448 using (ItemView itemView = new ItemView(factory))
450 itemView.SetAnchoringDuration(30.0f);
451 Assert.AreEqual(30.0f, itemView.GetAnchoringDuration(), "Should be equal!");
455 tlog.Debug(tag, $"ItemViewSetAnchoringDuration END (OK)");
460 [Description("ItemView Refresh.")]
461 [Property("SPEC", "Tizen.NUI.ItemView.Refresh M")]
462 [Property("SPEC_URL", "-")]
463 [Property("CRITERIA", "MR")]
464 [Property("AUTHOR", "guowei.wang@samsung.com")]
465 public void ItemViewRefresh()
467 tlog.Debug(tag, $"ItemViewRefresh START");
469 using (ItemFactory factory = new ItemFactory())
471 var testingTarget = new ItemView(factory);
472 Assert.IsNotNull(testingTarget, "Should be not null!");
473 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
475 testingTarget.AddLayout(new ItemLayout(factory.SwigCPtr.Handle, true));
479 testingTarget.Refresh();
483 tlog.Debug(tag, e.Message.ToString());
484 Assert.Fail("Caught Exception : Failed!");
488 tlog.Debug(tag, $"ItemViewRefresh END (OK)");
493 [Description("ItemView GetItemId.")]
494 [Property("SPEC", "Tizen.NUI.ItemView.GetItemId M")]
495 [Property("SPEC_URL", "-")]
496 [Property("CRITERIA", "MR")]
497 [Property("AUTHOR", "guowei.wang@samsung.com")]
498 public void ItemViewGetItemId()
500 tlog.Debug(tag, $"ItemViewGetItemId START");
502 using (ItemFactory factory = new ItemFactory())
504 var testingTarget = new ItemView(factory);
505 Assert.IsNotNull(testingTarget, "Should be not null!");
506 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
508 View view = new View()
510 Size = new Size(100, 80)
513 testingTarget.AddLayout(new ItemLayout(view.SwigCPtr.Handle, true));
517 var result = testingTarget.GetItemId(view);
518 tlog.Debug(tag, "ItemId : " + result);
522 tlog.Debug(tag, e.Message.ToString());
523 Assert.Fail("Caught Exception : Failed!");
527 tlog.Debug(tag, $"ItemViewGetItemId END (OK)");
532 [Description("ItemView SetItemsParentOrigin.")]
533 [Property("SPEC", "Tizen.NUI.ItemView.SetItemsParentOrigin M")]
534 [Property("SPEC_URL", "-")]
535 [Property("CRITERIA", "MR")]
536 [Property("AUTHOR", "guowei.wang@samsung.com")]
537 public void ItemViewSetItemsParentOrigin()
539 tlog.Debug(tag, $"ItemViewSetItemsParentOrigin START");
541 using (ItemFactory factory = new ItemFactory())
543 using (ItemView itemView = new ItemView(factory))
545 using (Vector3 vector = new Vector3(0.0f, 1.0f, 3.0f))
547 itemView.SetItemsParentOrigin(vector);
548 Assert.AreEqual(0.0f, itemView.GetItemsParentOrigin().X, "Should be equal!");
549 Assert.AreEqual(1.0f, itemView.GetItemsParentOrigin().Y, "Should be equal!");
550 Assert.AreEqual(3.0f, itemView.GetItemsParentOrigin().Z, "Should be equal!");
555 tlog.Debug(tag, $"ItemViewSetItemsParentOrigin END (OK)");
560 [Description("ItemView LayoutActivatedSignal.")]
561 [Property("SPEC", "Tizen.NUI.ItemView.LayoutActivatedSignal M")]
562 [Property("SPEC_URL", "-")]
563 [Property("CRITERIA", "MR")]
564 [Property("AUTHOR", "guowei.wang@samsung.com")]
565 public void ItemViewLayoutActivatedSignal()
567 tlog.Debug(tag, $"ItemViewLayoutActivatedSignal START");
569 using (ItemFactory factory = new ItemFactory())
571 using (ItemView itemView = new ItemView(factory))
573 var testingTarget = itemView.LayoutActivatedSignal();
574 Assert.IsNotNull(testingTarget, "Should be not null!");
575 Assert.IsInstanceOf<VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");
577 testingTarget.Dispose();
581 tlog.Debug(tag, $"ItemViewLayoutActivatedSignal END (OK)");
586 [Description("ItemView MinimumSwipeDistance.")]
587 [Property("SPEC", "Tizen.NUI.ItemView.MinimumSwipeDistance A")]
588 [Property("SPEC_URL", "-")]
589 [Property("CRITERIA", "PRW")]
590 [Property("AUTHOR", "guowei.wang@samsung.com")]
591 public void ItemViewMinimumSwipeDistance()
593 tlog.Debug(tag, $"ItemViewMinimumSwipeDistance START");
595 using (ItemFactory factory = new ItemFactory())
597 var testingTarget = new ItemView(factory);
598 Assert.IsNotNull(testingTarget, "Should be not null!");
599 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
601 testingTarget.MinimumSwipeDistance = 10.0f;
602 Assert.AreEqual(10.0f, testingTarget.MinimumSwipeDistance, "Should be equal");
604 testingTarget.Dispose();
607 tlog.Debug(tag, $"ItemViewMinimumSwipeDistance END (OK)");
612 [Description("ItemView MinimumSwipeSpeed.")]
613 [Property("SPEC", "Tizen.NUI.ItemView.MinimumSwipeSpeed A")]
614 [Property("SPEC_URL", "-")]
615 [Property("CRITERIA", "PRW")]
616 [Property("AUTHOR", "guowei.wang@samsung.com")]
617 public void ItemViewMinimumSwipeSpeed()
619 tlog.Debug(tag, $"ItemViewMinimumSwipeSpeed START");
621 using (ItemFactory factory = new ItemFactory())
623 var testingTarget = new ItemView(factory);
624 Assert.IsNotNull(testingTarget, "Should be not null!");
625 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
627 testingTarget.MinimumSwipeSpeed = 1.0f;
628 Assert.AreEqual(1.0f, testingTarget.MinimumSwipeSpeed, "Should be equal");
630 testingTarget.Dispose();
633 tlog.Debug(tag, $"ItemViewMinimumSwipeSpeed END (OK)");
638 [Description("ItemView WheelScrollDistanceStep.")]
639 [Property("SPEC", "Tizen.NUI.ItemView.WheelScrollDistanceStep A")]
640 [Property("SPEC_URL", "-")]
641 [Property("CRITERIA", "PRW")]
642 [Property("AUTHOR", "guowei.wang@samsung.com")]
643 public void ItemViewWheelScrollDistanceStep()
645 tlog.Debug(tag, $"ItemViewWheelScrollDistanceStep START");
647 using (ItemFactory factory = new ItemFactory())
649 var testingTarget = new ItemView(factory);
650 Assert.IsNotNull(testingTarget, "Should be not null!");
651 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
653 testingTarget.WheelScrollDistanceStep = 1.0f;
654 Assert.AreEqual(1.0f, testingTarget.WheelScrollDistanceStep, "Should be equal");
656 testingTarget.Dispose();
659 tlog.Debug(tag, $"ItemViewWheelScrollDistanceStep END (OK)");
664 [Description("ItemView SnapToItemEnabled.")]
665 [Property("SPEC", "Tizen.NUI.ItemView.SnapToItemEnabled A")]
666 [Property("SPEC_URL", "-")]
667 [Property("CRITERIA", "PRW")]
668 [Property("AUTHOR", "guowei.wang@samsung.com")]
669 public void ItemViewSnapToItemEnabled()
671 tlog.Debug(tag, $"ItemViewSnapToItemEnabled START");
673 using (ItemFactory factory = new ItemFactory())
675 var testingTarget = new ItemView(factory);
676 Assert.IsNotNull(testingTarget, "Should be not null!");
677 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
679 testingTarget.SnapToItemEnabled = true;
680 Assert.AreEqual(true, testingTarget.SnapToItemEnabled, "Should be equal");
682 testingTarget.SnapToItemEnabled = false;
683 Assert.AreEqual(false, testingTarget.SnapToItemEnabled, "Should be equal");
685 testingTarget.Dispose();
688 tlog.Debug(tag, $"ItemViewSnapToItemEnabled END (OK)");
693 [Description("ItemView RefreshInterval.")]
694 [Property("SPEC", "Tizen.NUI.ItemView.RefreshInterval A")]
695 [Property("SPEC_URL", "-")]
696 [Property("CRITERIA", "PRW")]
697 [Property("AUTHOR", "guowei.wang@samsung.com")]
698 public void ItemViewRefreshInterval()
700 tlog.Debug(tag, $"ItemViewRefreshInterval START");
702 using (ItemFactory factory = new ItemFactory())
704 var testingTarget = new ItemView(factory);
705 Assert.IsNotNull(testingTarget, "Should be not null!");
706 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
708 testingTarget.RefreshInterval = 0.3f;
709 Assert.AreEqual(0.3f, testingTarget.RefreshInterval, "Should be equal");
711 testingTarget.Dispose();
714 tlog.Debug(tag, $"ItemViewRefreshInterval END (OK)");
719 [Description("ItemView LayoutPosition.")]
720 [Property("SPEC", "Tizen.NUI.ItemView.LayoutPosition A")]
721 [Property("SPEC_URL", "-")]
722 [Property("CRITERIA", "PRW")]
723 [Property("AUTHOR", "guowei.wang@samsung.com")]
724 public void ItemViewLayoutPosition()
726 tlog.Debug(tag, $"ItemViewLayoutPosition START");
728 using (ItemFactory factory = new ItemFactory())
730 var testingTarget = new ItemView(factory);
731 Assert.IsNotNull(testingTarget, "Should be not null!");
732 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
734 testingTarget.LayoutPosition = 15.0f;
735 Assert.AreEqual(15.0f, testingTarget.LayoutPosition, "Should be equal");
737 testingTarget.Dispose();
740 tlog.Debug(tag, $"ItemViewLayoutPosition END (OK)");
745 [Description("ItemView ScrollSpeed.")]
746 [Property("SPEC", "Tizen.NUI.ItemView.ScrollSpeed A")]
747 [Property("SPEC_URL", "-")]
748 [Property("CRITERIA", "PRW")]
749 [Property("AUTHOR", "guowei.wang@samsung.com")]
750 public void ItemViewScrollSpeed()
752 tlog.Debug(tag, $"ItemViewScrollSpeed START");
754 using (ItemFactory factory = new ItemFactory())
756 var testingTarget = new ItemView(factory);
757 Assert.IsNotNull(testingTarget, "Should be not null!");
758 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
760 testingTarget.ScrollSpeed = 15.0f;
761 Assert.AreEqual(15.0f, testingTarget.ScrollSpeed, "Should be equal");
763 testingTarget.Dispose();
766 tlog.Debug(tag, $"ItemViewScrollSpeed END (OK)");
771 [Description("ItemView Overshoot.")]
772 [Property("SPEC", "Tizen.NUI.ItemView.Overshoot A")]
773 [Property("SPEC_URL", "-")]
774 [Property("CRITERIA", "PRW")]
775 [Property("AUTHOR", "guowei.wang@samsung.com")]
776 public void ItemViewOvershoot()
778 tlog.Debug(tag, $"ItemViewOvershoot START");
780 using (ItemFactory factory = new ItemFactory())
782 var testingTarget = new ItemView(factory);
783 Assert.IsNotNull(testingTarget, "Should be not null!");
784 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
786 testingTarget.Overshoot = 15.0f;
787 Assert.AreEqual(15.0f, testingTarget.Overshoot, "Should be equal");
789 testingTarget.Dispose();
792 tlog.Debug(tag, $"ItemViewOvershoot END (OK)");
797 [Description("ItemView ScrollDirection.")]
798 [Property("SPEC", "Tizen.NUI.ItemView.ScrollDirection A")]
799 [Property("SPEC_URL", "-")]
800 [Property("CRITERIA", "PRW")]
801 [Property("AUTHOR", "guowei.wang@samsung.com")]
802 public void ItemViewScrollDirection()
804 tlog.Debug(tag, $"ItemViewScrollDirection START");
806 using (ItemFactory factory = new ItemFactory())
808 var testingTarget = new ItemView(factory);
809 Assert.IsNotNull(testingTarget, "Should be not null!");
810 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
812 testingTarget.ScrollDirection = new Vector2(0.0f, 90.0f);
813 Assert.AreEqual(0.0f, testingTarget.ScrollDirection.X, "Should be equal");
814 Assert.AreEqual(90.0f, testingTarget.ScrollDirection.Y, "Should be equal");
816 testingTarget.Dispose();
819 tlog.Debug(tag, $"ItemViewScrollDirection END (OK)");
824 [Description("ItemView LayoutOrientation.")]
825 [Property("SPEC", "Tizen.NUI.ItemView.LayoutOrientation A")]
826 [Property("SPEC_URL", "-")]
827 [Property("CRITERIA", "PRW")]
828 [Property("AUTHOR", "guowei.wang@samsung.com")]
829 public void ItemViewLayoutOrientation()
831 tlog.Debug(tag, $"ItemViewLayoutOrientation START");
833 using (ItemFactory factory = new ItemFactory())
835 var testingTarget = new ItemView(factory);
836 Assert.IsNotNull(testingTarget, "Should be not null!");
837 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
839 testingTarget.LayoutOrientation = 1;
840 Assert.AreEqual(1, testingTarget.LayoutOrientation, "Should be equal");
842 testingTarget.Dispose();
845 tlog.Debug(tag, $"ItemViewLayoutOrientation END (OK)");
850 [Description("ItemView ScrollContentSize.")]
851 [Property("SPEC", "Tizen.NUI.ItemView.ScrollContentSize A")]
852 [Property("SPEC_URL", "-")]
853 [Property("CRITERIA", "PRW")]
854 [Property("AUTHOR", "guowei.wang@samsung.com")]
855 public void ItemViewScrollContentSize()
857 tlog.Debug(tag, $"ItemViewScrollContentSize START");
859 using (ItemFactory factory = new ItemFactory())
861 var testingTarget = new ItemView(factory);
862 Assert.IsNotNull(testingTarget, "Should be not null!");
863 Assert.IsInstanceOf<ItemView>(testingTarget, "Should be an Instance of ItemView!");
865 testingTarget.ScrollContentSize = 15.0f;
866 Assert.AreEqual(15.0f, testingTarget.ScrollContentSize, "Should be equal");
868 testingTarget.Dispose();
871 tlog.Debug(tag, $"ItemViewScrollContentSize END (OK)");