Assert.AreEqual(false, _testwindow.Urgent, "Retrieved Urgent of window should be equal to set value");
}
+
+
[Test]
[Category("P1")]
[Description("Check whether get value of Withdrawn are identical with the set value or not.")]
[Test]
[Category("P1")]
+ [Description("Check whether get value of NotificationLevel are identical with the set value or not.")]
+ [Property("SPEC", "ElmSharp.Window.NotificationLevel A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void NotificationLevel_PROPERTY_SET_GET()
+ {
+ var _win = new Window(_testwindow, "notiwin", WindowType.Notification);
+
+ _win.NotificationLevel = NotificationLevel.Top;
+ Assert.AreEqual(NotificationLevel.Top, _win.NotificationLevel, "Retrieved NotificationLevel of window should be equal to set value");
+
+ _win.Unrealize();
+ _win = null;
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Check whether get value of ScreenMode are identical with the set value or not.")]
+ [Property("SPEC", "ElmSharp.Window.ScreenMode A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void ScreenMode_PROPERTY_SET_GET()
+ {
+ _testwindow.ScreenMode = ScreenMode.AlwaysOn;
+ Assert.AreEqual(ScreenMode.AlwaysOn, _testwindow.ScreenMode, "Retrieved ScreenMode of window should be equal to set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Check whether get value of Brightness are identical with the set value or not.")]
+ [Property("SPEC", "ElmSharp.Window.Brightness A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void Brightness_PROPERTY_SET_GET()
+ {
+ _testwindow.Brightness = 100;
+ Assert.AreEqual(100, _testwindow.Brightness, "Retrieved Brightness of window should be equal to set value");
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Check whether CreateServiceSocket method exist or not.")]
[Property("SPEC", "ElmSharp.Window.CreateServiceSocket M")]
[Property("SPEC_URL", "-")]
Assert.Fail("should not throw exception:" + ex.ToString());
}
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Check whether SetOpaqueState method exist or not.")]
+ [Property("SPEC", "ElmSharp.Window.SetOpaqueState M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void SetOpaqueState_CHECK()
+ {
+ try
+ {
+ _testwindow.SetOpaqueState();
+ }
+ catch (Exception ex)
+ {
+ Assert.Fail("should not throw exception:" + ex.ToString());
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Check whether UnsetOpaqueState method exist or not.")]
+ [Property("SPEC", "ElmSharp.Window.UnsetOpaqueState M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void UnsetOpaqueState_CHECK()
+ {
+ try
+ {
+ _testwindow.UnsetOpaqueState();
+ }
+ catch (Exception ex)
+ {
+ Assert.Fail("should not throw exception:" + ex.ToString());
+ }
+ }
}
}