From 7bb0687e202e8a96b7f780147959f8509ac1f413 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 14 Dec 2018 08:53:14 +0900 Subject: [PATCH] [Applications][TCSACR-194][Add a new testcase] Added: - CurrentDeviceOrientation_PROPERTY_GET() Change-Id: I4ebe1e42751812bc6638fb48abebfee88e4d7294 Signed-off-by: Hwankyu Jhun --- .../testcase/TSCoreUIApplication.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs b/tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs index 824b0f2..c96cc5a 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"); + } } } -- 2.7.4