[WatchfaceComplication][NonACR] Add complication data test case 06/204606/2
authorhyunho <hhstark.kang@samsung.com>
Thu, 25 Apr 2019 01:31:33 +0000 (10:31 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 25 Apr 2019 01:32:12 +0000 (01:32 +0000)
Change-Id: I8c509192bacba7b16acd8cde200e28f651448d5b
Signed-off-by: hyunho <hhstark.kang@samsung.com>
tct-suite-vs/Tizen.WatchfaceComplication.Tests/testcase/TSComplicationData.cs [new file with mode: 0644]

diff --git a/tct-suite-vs/Tizen.WatchfaceComplication.Tests/testcase/TSComplicationData.cs b/tct-suite-vs/Tizen.WatchfaceComplication.Tests/testcase/TSComplicationData.cs
new file mode 100644 (file)
index 0000000..b3b924d
--- /dev/null
@@ -0,0 +1,45 @@
+using NUnit.Framework;\r
+using NUnit.Framework.TUnit;\r
+using System;\r
+using System.Collections.Generic;\r
+using System.Linq;\r
+using System.Text;\r
+using System.Threading.Tasks;\r
+\r
+\r
+namespace Tizen.Applications.WatchfaceComplication.Tests\r
+{\r
+\r
+    [TestFixture]\r
+    [Description("Tizen.Applications.WatchfaceComplication Test complication data")]\r
+    public class ComplicationDataTests\r
+    {\r
+        [SetUp]\r
+        public static void Init()\r
+        {\r
+            LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for each TEST");\r
+        }\r
+\r
+        [TearDown]\r
+        public static void Destroy()\r
+        {\r
+            LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for each TEST");\r
+        }\r
+\r
+\r
+        [Test]\r
+        [Category("P1")]\r
+        [Description("Test : ComplicationData constructor test")]\r
+        [Property("SPEC", "Tizen.Applications.WatchfaceComplication.ComplicationData.ComplicationData C")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "CONSTR")]\r
+        [Property("AUTHOR", "Hyunho Kang, hhstark.kang@samsung.com")]\r
+\r
+        public static void ComplicationData_INIT()\r
+        {\r
+            ComplicationData data = new ShortTextData("test", null, null, null);\r
+            Assert.IsNotNull(data, "Object should not be null after initializing");\r
+            Assert.IsInstanceOf<ShortTextData>(data, "Object should be instance of Complication");\r
+        }\r
+    }\r
+}
\ No newline at end of file