ae338f98382cd54e9874ee8304a1fa73fcdb8d9c
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Common / TSNativeImageInterface.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/NativeImageInterface")]
13     public class InternalNativeImageInterfaceTest
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("NativeImageInterface constructor.")]
32         [Property("SPEC", "Tizen.NUI.NativeImageInterface.NativeImageInterface C")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "CONSTR")]
35         [Property("AUTHOR", "guowei.wang@samsung.com")]
36         public void NativeImageInterfaceConstructor()
37         {
38             tlog.Debug(tag, $"NativeImageInterfaceConstructor START");
39
40             using (ImageView view = new ImageView())
41             {
42                 var testingTarget = new NativeImageInterface(view.SwigCPtr.Handle, false);
43                 Assert.IsNotNull(testingTarget, "Should be not null!");
44                 Assert.IsInstanceOf<NativeImageInterface>(testingTarget, "Should be an Instance of NativeImageInterface!");
45
46                 testingTarget.Dispose();
47             }
48
49             tlog.Debug(tag, $"NativeImageInterfaceConstructor END (OK)");
50         }
51     }
52 }