}
}
+ [Test]
+ [Category("P1")]
+ [Description("Get Visibility property of BtAdapter")]
+ [Property("SPEC", "Tizen.Network.Bluetooth.BluetoothAdapter.Visibility A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
+ public static void Visibility_PROPERTY_READ_ONLY()
+ {
+ try
+ {
+ VisibilityMode mode = BluetoothAdapter.Visibility;
+ Assert.IsInstanceOf<VisibilityMode>(mode);
+ Assert.IsTrue((mode == VisibilityMode.NonDiscoverable) || (mode == VisibilityMode.Discoverable) || (mode == VisibilityMode.TimeLimitedDiscoverable), "Visibility mode is not correct");
+ }
+ catch (Exception ex)
+ {
+ if (ex is NotSupportedException)
+ {
+ Assert.IsTrue(_isBluetoothSupported == false, "Invalid NotSupportedException");
+ }
+ else
+ {
+ Assert.Fail("Throwing exception " + ex.ToString());
+ }
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Get RemainingTimeAsVisible property of BtAdapter")]
+ [Property("SPEC", "Tizen.Network.Bluetooth.BluetoothAdapter.RemainingTimeAsVisible A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
+ public static void RemainingTimeAsVisible_READ_ONLY()
+ {
+ try
+ {
+ int time = BluetoothAdapter.RemainingTimeAsVisible;
+ Assert.IsInstanceOf<int>(time);
+ Assert.IsTrue(time >= 0);
+ }
+ catch (Exception ex)
+ {
+ if (ex is NotSupportedException)
+ {
+ Assert.IsTrue(_isBluetoothSupported == false, "Invalid NotSupportedException");
+ }
+ else
+ {
+ Assert.Fail("Throwing exception " + ex.ToString());
+ }
+ }
+ }
+
[Test]
[Category("P1")]
[Description("Check the Name property of BtAdapter is readable and writable.")]