7f63eedecfb1e88bffb745a6ed1157bf9ee0d5c4
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Common / TSObjectRegistry.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/Common/ObjectRegistry")]
13     public class InternalObjectRegistryTest
14     {
15         private const string tag = "NUITEST";
16         private ObjectRegistry registry = null;
17
18         [SetUp]
19         public void Init()
20         {
21             tlog.Info(tag, "Init() is called!");
22         }
23
24         [TearDown]
25         public void Destroy()
26         {
27             tlog.Info(tag, "Destroy() is called!");
28         }
29
30         [Test]
31         [Category("P1")]
32         [Description("ObjectRegistry constructor.")]
33         [Property("SPEC", "Tizen.NUI.ObjectRegistry.ObjectRegistry C")]
34         [Property("SPEC_URL", "-")]
35         [Property("CRITERIA", "CONSTR")]
36         [Property("COVPARAM", "")]
37         [Property("AUTHOR", "guowei.wang@samsung.com")]
38         public void ObjectRegistryConstructor()
39         {
40             tlog.Debug(tag, $"ObjectRegistryConstructor START");
41
42             var testingTarget = new ObjectRegistry();
43             Assert.IsNotNull(testingTarget, "null handle");
44             Assert.IsInstanceOf<ObjectRegistry>(testingTarget, "Should return ObjectRegistry instance.");
45
46             testingTarget.Dispose();
47             tlog.Debug(tag, $"ObjectRegistryConstructor END (OK)");
48         }
49     }
50 }