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");
+ }
}
}