From c39dba9917b03334dbbb6e2d2ae6a343b20511a6 Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Thu, 13 Dec 2018 17:07:17 +0900 Subject: [PATCH] [WidgetControl][TCSACR-202] Add new TCs - Added TC for property MainAppId and PackageId Change-Id: I82ee4722983c34a15e00b67028b0f7fca03d610b Signed-off-by: Junghoon Park --- .../testcase/TSWidgetControl.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tct-suite-vs/Tizen.WidgetControl.Tests/testcase/TSWidgetControl.cs b/tct-suite-vs/Tizen.WidgetControl.Tests/testcase/TSWidgetControl.cs index 17b9184..e26c009 100755 --- a/tct-suite-vs/Tizen.WidgetControl.Tests/testcase/TSWidgetControl.cs +++ b/tct-suite-vs/Tizen.WidgetControl.Tests/testcase/TSWidgetControl.cs @@ -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(_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(_widgetControl.PackageId); + Assert.AreEqual(_widgetControl.PackageId, "WidgetCtrlSample.Tizen"); + } } } -- 2.7.4