From: Hwankyu Jhun Date: Thu, 13 Dec 2018 23:53:14 +0000 (+0900) Subject: [Applications][TCSACR-194][Add a new testcase] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F195469%2F2;p=test%2Ftct%2Fcsharp%2Fapi.git [Applications][TCSACR-194][Add a new testcase] Added: - CurrentDeviceOrientation_PROPERTY_GET() Change-Id: I4ebe1e42751812bc6638fb48abebfee88e4d7294 Signed-off-by: Hwankyu Jhun --- diff --git a/tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs b/tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs index 824b0f262..c96cc5a44 100755 --- a/tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs +++ b/tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs @@ -32,5 +32,24 @@ namespace Tizen.Applications.Tests Application app = new CoreUIApplication(); Assert.IsNotNull(app, "Application should be not null after init"); } + + [Test] + [Category("P1")] + [Description("Test : Check whether CurrentDeviceOrientation returns expected value or not")] + [Property("SPEC", "Tizen.Applications.CoreUIApplication.CurrentDeviceOrientation A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRO")] + [Property("AUTHOR", "Hwankyu Jhun, h.jhun@samsung.com")] + public void CurrentDeviceOrientation_PROPERTY_GET() + { + CoreUIApplication app = new CoreUIApplication(); + var deviceOrientation = app.CurrentDeviceOrientation; + Assert.IsInstanceOf(deviceOrientation); + Assert.IsTrue((deviceOrientation == DeviceOrientation.Orientation_0) || + (deviceOrientation == DeviceOrientation.Orientation_90) || + (deviceOrientation == DeviceOrientation.Orientation_180) || + (deviceOrientation == DeviceOrientation.Orientation_270), + "Property \"CurrentDeviceOrientation\": should be Orientation_0 or Orientation_90 or Orientation_180 or Orientation_270"); + } } }