[WidgetControl][TCSACR-202] Add new TCs 23/195423/3
authorJunghoon Park <jh9216.park@samsung.com>
Thu, 13 Dec 2018 08:07:17 +0000 (17:07 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Fri, 14 Dec 2018 06:58:36 +0000 (15:58 +0900)
- Added TC for property MainAppId and PackageId

Change-Id: I82ee4722983c34a15e00b67028b0f7fca03d610b
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
tct-suite-vs/Tizen.WidgetControl.Tests/testcase/TSWidgetControl.cs

index 17b9184..e26c009 100755 (executable)
@@ -238,5 +238,31 @@ namespace Tizen.WidgetControl.Tests
                 Assert.Fail("Caught Exception" + e.ToString());
             }
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test : Check whether MainAppId value is valid")]
+        [Property("SPEC", "Tizen.Applications.WidgetControl.MainAppId A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRO")]
+        [Property("AUTHOR", "Junghoon Park, jh9216.park@samsung.com")]
+        public void MainAppId_PROPERTY_GET()
+        {
+            Assert.IsInstanceOf<string>(_widgetControl.MainAppId);
+            Assert.AreEqual(_widgetControl.MainAppId, "org.tizen.WidgetCtrlSample");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test : Check whether PackageId value is valid")]
+        [Property("SPEC", "Tizen.Applications.WidgetControl.PackageId A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRO")]
+        [Property("AUTHOR", "Junghoon Park, jh9216.park@samsung.com")]
+        public void PackageId_PROPERTY_GET()
+        {
+            Assert.IsInstanceOf<string>(_widgetControl.PackageId);
+            Assert.AreEqual(_widgetControl.PackageId, "WidgetCtrlSample.Tizen");
+        }
     }
 }