[Applications][TCSACR-194][Add a new testcase] 69/195469/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 13 Dec 2018 23:53:14 +0000 (08:53 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 14 Dec 2018 08:57:09 +0000 (17:57 +0900)
Added:
 - CurrentDeviceOrientation_PROPERTY_GET()

Change-Id: I4ebe1e42751812bc6638fb48abebfee88e4d7294
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tct-suite-vs/Tizen.Applications.Tests/testcase/TSCoreUIApplication.cs

index 824b0f2628d44de84b34d77f7e9aced1d0b8db69..c96cc5a44a181743ac9aa008e92e3a4b428e21d8 100755 (executable)
@@ -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>(deviceOrientation);
+            Assert.IsTrue((deviceOrientation == DeviceOrientation.Orientation_0) ||\r
+                (deviceOrientation == DeviceOrientation.Orientation_90) ||\r
+                (deviceOrientation == DeviceOrientation.Orientation_180) ||\r
+                (deviceOrientation == DeviceOrientation.Orientation_270),
+                "Property \"CurrentDeviceOrientation\": should be Orientation_0 or Orientation_90 or Orientation_180 or Orientation_270");
+        }
     }
 }