[NUI] Update NUI.Devel to fix block and crash issues.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / EXaml / Action / TSAddToCollectionPropertyAction.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10
11     [TestFixture]
12     [Description("internal/EXaml/Action/AddToCollectionPropertyAction")]
13     public class InternalAddToCollectionPropertyActionTest
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
31         [Description("AddToCollectionPropertyAction constructor.")]
32         [Property("SPEC", "Tizen.NUI.EXaml.AddToCollectionPropertyAction.AddToCollectionPropertyAction C")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "CONSTR")]
35         [Property("AUTHOR", "guowei.wang@samsung.com")]
36         public void EXamlAddToCollectionPropertyActionConstructor()
37         {
38             tlog.Debug(tag, $"EXamlAddToCollectionPropertyActionConstructor START");
39
40             var testingTarget = new Tizen.NUI.EXaml.AddToCollectionPropertyAction(new Tizen.NUI.EXaml.GlobalDataList(), null);
41             Assert.IsNotNull(testingTarget, "Can't create success object AddToCollectionPropertyAction");
42             Assert.IsInstanceOf<Tizen.NUI.EXaml.AddToCollectionPropertyAction>(testingTarget, "Should be an instance of AddToCollectionPropertyAction type.");
43
44             tlog.Debug(tag, $"EXamlAddToCollectionPropertyActionConstructor END (OK)");
45         }
46
47         [Test]
48         [Category("P1")]
49         [Description("AddToCollectionPropertyAction Init.")]
50         [Property("SPEC", "Tizen.NUI.EXaml.AddToCollectionPropertyAction.Init M")]
51         [Property("SPEC_URL", "-")]
52         [Property("CRITERIA", "MR")]
53         [Property("AUTHOR", "guowei.wang@samsung.com")]
54         public void EXamlAddToCollectionPropertyActionInit()
55         {
56             tlog.Debug(tag, $"EXamlAddToCollectionPropertyActionInit START");
57
58             var testingTarget = new Tizen.NUI.EXaml.AddToCollectionPropertyAction(new Tizen.NUI.EXaml.GlobalDataList(), null);
59             Assert.IsNotNull(testingTarget, "Can't create success object AddToCollectionPropertyAction");
60             Assert.IsInstanceOf<Tizen.NUI.EXaml.AddToCollectionPropertyAction>(testingTarget, "Should be an instance of AddToCollectionPropertyAction type.");
61
62             try
63             {
64                 testingTarget.Init();
65             }
66             catch (Exception e)
67             {
68                 tlog.Debug(tag, e.Message.ToString());
69                 Assert.Fail("Caught Exception : Failed!");
70             }
71
72             tlog.Debug(tag, $"EXamlAddToCollectionPropertyActionInit END (OK)");
73         }
74     }
75 }