summaryrefslogtreecommitdiff
path: root/tct-system-settings-tizen-tests/src/Testcase/TSSystemSettings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tct-system-settings-tizen-tests/src/Testcase/TSSystemSettings.cs')
-rw-r--r--tct-system-settings-tizen-tests/src/Testcase/TSSystemSettings.cs1326
1 files changed, 0 insertions, 1326 deletions
diff --git a/tct-system-settings-tizen-tests/src/Testcase/TSSystemSettings.cs b/tct-system-settings-tizen-tests/src/Testcase/TSSystemSettings.cs
deleted file mode 100644
index a31faff..0000000
--- a/tct-system-settings-tizen-tests/src/Testcase/TSSystemSettings.cs
+++ /dev/null
@@ -1,1326 +0,0 @@
-using System.Threading.Tasks;
-using TestFramework;
-
-namespace TizenTest.SystemSettings
-{
- [TestFixture]
- [Description("Tizen.System.SystemSettings Tests")]
- public class SystemSettings
- {
- [SetUp]
- public static void Init()
- {
- //LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "Preconditions for each TEST");
- }
-
- [TearDown]
- public static void Destroy()
- {
- //LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for each TEST");
- }
-
- // IncomingCallRingtone
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:IncomingCallRingtone is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.IncomingCallRingtone A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void IncomingCallRingtone_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.IncomingCallRingtone);
- var setValue = "/opt/share/settings/Ringtones/ringtone_sdk.mp3";
- Tizen.System.SystemSettings.IncomingCallRingtone = setValue;
- var getValue = Tizen.System.SystemSettings.IncomingCallRingtone;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "IncomingCallRingtone_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_incomingCallRingtoneCallbackCalled = false;
- private static readonly string s_incomingCallRingtoneValue = "/opt/share/settings/Ringtones/ringtone_sdk.mp3";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:IncomingCallRingtoneChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.IncomingCallRingtoneChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task IncomingCallRingtoneChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.IncomingCallRingtoneChanged += OnIncomingCallRingtoneChanged;
- Tizen.System.SystemSettings.IncomingCallRingtone = s_incomingCallRingtoneValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_incomingCallRingtoneCallbackCalled);
- s_incomingCallRingtoneCallbackCalled = false;
- Tizen.System.SystemSettings.IncomingCallRingtoneChanged -= OnIncomingCallRingtoneChanged;
- Tizen.System.SystemSettings.IncomingCallRingtone = s_incomingCallRingtoneValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_incomingCallRingtoneCallbackCalled);
- }
- private static void OnIncomingCallRingtoneChanged(object sender, Tizen.System.IncomingCallRingtoneChangedEventArgs e)
- {
- s_incomingCallRingtoneCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_incomingCallRingtoneValue.CompareTo(e.Value) == 0, "OnIncomingCallRingtoneChanged: The callback should receive the latest value for the property.");
- }
-
- // WallpaperHomeScreen
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:WallpaperHomeScreen is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.WallpaperHomeScreen A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void WallpaperHomeScreen_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.WallpaperHomeScreen);
- var setValue = "/opt/share/settings/Wallpapers/Home_default.jpg";
- Tizen.System.SystemSettings.WallpaperHomeScreen = setValue;
- var getValue = Tizen.System.SystemSettings.WallpaperHomeScreen;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "WallpaperHomeScreen_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_wallpaperHomeScreenCallbackCalled = false;
- private static readonly string s_wallpaperHomeScreenValue = "/opt/share/settings/Wallpapers/Home_default.jpg";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:WallpaperHomeScreenChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.WallpaperHomeScreenChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task WallpaperHomeScreenChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.WallpaperHomeScreenChanged += OnWallpaperHomeScreenChanged;
- Tizen.System.SystemSettings.WallpaperHomeScreen = s_wallpaperHomeScreenValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_wallpaperHomeScreenCallbackCalled);
- s_wallpaperHomeScreenCallbackCalled = false;
- Tizen.System.SystemSettings.WallpaperHomeScreenChanged -= OnWallpaperHomeScreenChanged;
- Tizen.System.SystemSettings.WallpaperHomeScreen = s_wallpaperHomeScreenValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_wallpaperHomeScreenCallbackCalled);
- }
- private static void OnWallpaperHomeScreenChanged(object sender, Tizen.System.WallpaperHomeScreenChangedEventArgs e)
- {
- s_wallpaperHomeScreenCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_wallpaperHomeScreenValue.CompareTo(e.Value) == 0, "OnWallpaperHomeScreenChanged: The callback should receive the latest value for the property.");
- }
-
- //WallpaperLockScreen
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:WallpaperLockScreen is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.WallpaperLockScreen A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void WallpaperLockScreen_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.WallpaperLockScreen);
- var setValue = "/opt/share/settings/Wallpapers/Home_default.jpg";
- Tizen.System.SystemSettings.WallpaperLockScreen = setValue;
- var getValue = Tizen.System.SystemSettings.WallpaperLockScreen;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "WallpaperLockScreen_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_wallpaperLockScreenCallbackCalled = false;
- private static readonly string s_wallpaperLockScreenValue = "/opt/share/settings/Wallpapers/Home_default.jpg";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:WallpaperLockScreenChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.WallpaperLockScreenChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task WallpaperLockScreenChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.WallpaperLockScreenChanged += OnWallpaperLockScreenChanged;
- Tizen.System.SystemSettings.WallpaperLockScreen = s_wallpaperLockScreenValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_wallpaperLockScreenCallbackCalled);
- s_wallpaperLockScreenCallbackCalled = false;
- Tizen.System.SystemSettings.WallpaperLockScreenChanged -= OnWallpaperLockScreenChanged;
- Tizen.System.SystemSettings.WallpaperLockScreen = s_wallpaperLockScreenValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_wallpaperLockScreenCallbackCalled);
- }
- private static void OnWallpaperLockScreenChanged(object sender, Tizen.System.WallpaperLockScreenChangedEventArgs e)
- {
- s_wallpaperLockScreenCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_wallpaperLockScreenValue.CompareTo(e.Value) == 0, "OnWallpaperLockScreenChanged: The callback should receive the latest value for the property.");
- }
-
- // FontSize
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:FontSize is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontSize A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW MAE")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void FontSize_READ_WRITE_ALL()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<Tizen.System.SystemSettingsFontSize>(Tizen.System.SystemSettings.FontSize);
-
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Small;
- var getValue = Tizen.System.SystemSettings.FontSize;
- Assert.IsTrue(getValue == Tizen.System.SystemSettingsFontSize.Small, "FontSize_READ_WRITE_ALL: Set value and get value of the property should be same.");
-
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Normal;
- getValue = Tizen.System.SystemSettings.FontSize;
- Assert.IsTrue(getValue == Tizen.System.SystemSettingsFontSize.Normal, "FontSize_READ_WRITE_ALL: Set value and get value of the property should be same.");
-
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Large;
- getValue = Tizen.System.SystemSettings.FontSize;
- Assert.IsTrue(getValue == Tizen.System.SystemSettingsFontSize.Large, "FontSize_READ_WRITE_ALL: Set value and get value of the property should be same.");
-
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Huge;
- getValue = Tizen.System.SystemSettings.FontSize;
- Assert.IsTrue(getValue == Tizen.System.SystemSettingsFontSize.Huge, "FontSize_READ_WRITE_ALL: Set value and get value of the property should be same.");
-
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Giant;
- getValue = Tizen.System.SystemSettings.FontSize;
- Assert.IsTrue(getValue == Tizen.System.SystemSettingsFontSize.Giant, "FontSize_READ_WRITE_ALL: Set value and get value of the property should be same.");
- }
-
- private static bool s_fontSizeSmallCallbackCalled = false;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:FontSizeChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontSizeChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task FontSizeChanged_CHECK_EVENT_SMALL()
- {
- Tizen.System.SystemSettings.FontSizeChanged += OnFontSizeChangedSmall;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Small;
- await Task.Delay(5000);
- Tizen.System.SystemSettings.FontSizeChanged -= OnFontSizeChangedSmall;
- Assert.IsTrue(s_fontSizeSmallCallbackCalled);
- s_fontSizeSmallCallbackCalled = false;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Small;
- await Task.Delay(5000);
- Assert.IsFalse(s_fontSizeSmallCallbackCalled);
- }
- private static void OnFontSizeChangedSmall(object sender, Tizen.System.FontSizeChangedEventArgs e)
- {
- s_fontSizeSmallCallbackCalled = true;
- Assert.IsInstanceOf<Tizen.System.SystemSettingsFontSize>(e.Value);
- Assert.IsTrue(e.Value == Tizen.System.SystemSettingsFontSize.Small, "OnFontSizeChangedSmall: The callback should receive the latest value for the property.");
- }
-
- private static bool s_fontSizeNormalCallbackCalled = false;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:FontSizeChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontSizeChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task FontSizeChanged_CHECK_EVENT_NORMAL()
- {
- Tizen.System.SystemSettings.FontSizeChanged += OnFontSizeChangedNormal;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Normal;
- await Task.Delay(5000);
- Tizen.System.SystemSettings.FontSizeChanged -= OnFontSizeChangedNormal;
- Assert.IsTrue(s_fontSizeNormalCallbackCalled);
- s_fontSizeNormalCallbackCalled = false;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Normal;
- await Task.Delay(5000);
- Assert.IsFalse(s_fontSizeNormalCallbackCalled);
- }
- private static void OnFontSizeChangedNormal(object sender, Tizen.System.FontSizeChangedEventArgs e)
- {
- s_fontSizeNormalCallbackCalled = true;
- Assert.IsInstanceOf<Tizen.System.SystemSettingsFontSize>(e.Value);
- Assert.IsTrue(e.Value == Tizen.System.SystemSettingsFontSize.Normal, "OnFontSizeChangedNormal: The callback should receive the latest value for the property.");
- }
-
- private static bool s_fontSizeLargeCallbackCalled = false;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:FontSizeChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontSizeChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task FontSizeChanged_CHECK_EVENT_LARGE()
- {
- Tizen.System.SystemSettings.FontSizeChanged += OnFontSizeChangedLarge;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Large;
- await Task.Delay(5000);
- Tizen.System.SystemSettings.FontSizeChanged -= OnFontSizeChangedLarge;
- Assert.IsTrue(s_fontSizeLargeCallbackCalled);
- s_fontSizeLargeCallbackCalled = false;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Large;
- await Task.Delay(5000);
- Assert.IsFalse(s_fontSizeLargeCallbackCalled);
- }
- private static void OnFontSizeChangedLarge(object sender, Tizen.System.FontSizeChangedEventArgs e)
- {
- s_fontSizeLargeCallbackCalled = true;
- Assert.IsInstanceOf<Tizen.System.SystemSettingsFontSize>(e.Value);
- Assert.IsTrue(e.Value == Tizen.System.SystemSettingsFontSize.Large, "OnFontSizeChangedLarge: The callback should receive the latest value for the property.");
- }
-
- private static bool s_fontSizeHugeCallbackCalled = false;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:FontSizeChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontSizeChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task FontSizeChanged_CHECK_EVENT_HUGE()
- {
- Tizen.System.SystemSettings.FontSizeChanged += OnFontSizeChangedHuge;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Huge;
- await Task.Delay(5000);
- Tizen.System.SystemSettings.FontSizeChanged -= OnFontSizeChangedHuge;
- Assert.IsTrue(s_fontSizeHugeCallbackCalled);
- s_fontSizeHugeCallbackCalled = false;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Huge;
- await Task.Delay(5000);
- Assert.IsFalse(s_fontSizeHugeCallbackCalled);
- }
- private static void OnFontSizeChangedHuge(object sender, Tizen.System.FontSizeChangedEventArgs e)
- {
- s_fontSizeHugeCallbackCalled = true;
- Assert.IsInstanceOf<Tizen.System.SystemSettingsFontSize>(e.Value);
- Assert.IsTrue(e.Value == Tizen.System.SystemSettingsFontSize.Huge, "OnFontSizeChangedHuge: The callback should receive the latest value for the property.");
- }
-
- private static bool s_fontSizeGiantCallbackCalled = false;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:FontSizeChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontSizeChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task FontSizeChanged_CHECK_EVENT_GIANT()
- {
- Tizen.System.SystemSettings.FontSizeChanged += OnFontSizeChangedGiant;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Giant;
- await Task.Delay(5000);
- Tizen.System.SystemSettings.FontSizeChanged -= OnFontSizeChangedGiant;
- Assert.IsTrue(s_fontSizeGiantCallbackCalled);
- s_fontSizeGiantCallbackCalled = false;
- Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Giant;
- await Task.Delay(5000);
- Assert.IsFalse(s_fontSizeGiantCallbackCalled);
- }
- private static void OnFontSizeChangedGiant(object sender, Tizen.System.FontSizeChangedEventArgs e)
- {
- s_fontSizeGiantCallbackCalled = true;
- Assert.IsInstanceOf<Tizen.System.SystemSettingsFontSize>(e.Value);
- Assert.IsTrue(e.Value == Tizen.System.SystemSettingsFontSize.Giant, "OnFontSizeChangedGiant: The callback should receive the latest value for the property.");
- }
-
- // FontType
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:FontType is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontType A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void FontType_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.FontType);
- string setValue = "BreezeSans";
- Tizen.System.SystemSettings.FontType = setValue;
- var getValue = Tizen.System.SystemSettings.FontType;
- Assert.IsTrue(getValue.CompareTo(setValue) == 0, "FontType_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_fontTypeCallbackCalled = false;
- private static readonly string s_fontTypeValue = "BreezeSans";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:FontTypeChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.FontTypeChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task FontTypeChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.FontTypeChanged += OnFontTypeChanged;
- Tizen.System.SystemSettings.FontType = s_fontTypeValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_fontTypeCallbackCalled);
- s_fontTypeCallbackCalled = false;
- Tizen.System.SystemSettings.FontTypeChanged -= OnFontTypeChanged;
- Tizen.System.SystemSettings.FontType = s_fontTypeValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_fontTypeCallbackCalled);
- }
- private static void OnFontTypeChanged(object sender, Tizen.System.FontTypeChangedEventArgs e)
- {
- s_fontTypeCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_fontTypeValue.CompareTo(e.Value) == 0, "OnFontTypeChanged: The callback should receive the latest value for the property.");
- }
-
- // MotionActivation
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:MotionActivation is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.MotionActivation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void MotionActivation_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.MotionActivationEnabled);
- Tizen.System.SystemSettings.MotionActivationEnabled = true;
- Assert.IsTrue(Tizen.System.SystemSettings.MotionActivationEnabled, "MotionActivation_READ_WRITE: Set value and get value of the property should be same.");
- Tizen.System.SystemSettings.MotionActivationEnabled = false;
- Assert.IsFalse(Tizen.System.SystemSettings.MotionActivationEnabled, "MotionActivation_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_motionActivationCallbackCalled = false;
- private static bool s_motionActivationValue = !Tizen.System.SystemSettings.MotionActivationEnabled;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:MotionActivationChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.MotionActivationChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task MotionActivationChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.MotionActivationSettingChanged += OnMotionActivationChanged;
- Tizen.System.SystemSettings.MotionActivationEnabled = s_motionActivationValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_motionActivationCallbackCalled);
- s_motionActivationCallbackCalled = false;
- s_motionActivationValue = !s_motionActivationValue;
- Tizen.System.SystemSettings.MotionActivationEnabled = s_motionActivationValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_motionActivationCallbackCalled);
- s_motionActivationCallbackCalled = false;
-
- Tizen.System.SystemSettings.MotionActivationSettingChanged -= OnMotionActivationChanged;
- Tizen.System.SystemSettings.MotionActivationEnabled = s_motionActivationValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_motionActivationCallbackCalled);
- }
- private static void OnMotionActivationChanged(object sender, Tizen.System.MotionActivationSettingChangedEventArgs e)
- {
- s_motionActivationCallbackCalled = true;
- Assert.IsInstanceOf<bool>(e.Value);
- Assert.IsTrue(e.Value == s_motionActivationValue, "OnMotionActivationChanged: The callback should receive the latest value for the property.");
- }
-
- // EmailAlertRingtone
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:EmailAlertRingtone is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.EmailAlertRingtone A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void EmailAlertRingtone_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.EmailAlertRingtone);
- var setValue = "/opt/share/settings/Alerts/General notification_sdk.wav";
- Tizen.System.SystemSettings.EmailAlertRingtone = setValue;
- var getValue = Tizen.System.SystemSettings.EmailAlertRingtone;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "EmailAlertRingtone_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_emailAlertRingtoneCallbackCalled = false;
- private static readonly string s_emailAlertRingtoneValue = "/opt/share/settings/Alerts/General notification_sdk.wav";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:EmailAlertRingtoneChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.EmailAlertRingtoneChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task EmailAlertRingtoneChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.EmailAlertRingtoneChanged += OnEmailAlertRingtoneChanged;
- Tizen.System.SystemSettings.EmailAlertRingtone = s_emailAlertRingtoneValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_emailAlertRingtoneCallbackCalled);
- s_emailAlertRingtoneCallbackCalled = false;
- Tizen.System.SystemSettings.EmailAlertRingtoneChanged -= OnEmailAlertRingtoneChanged;
- Tizen.System.SystemSettings.EmailAlertRingtone = s_emailAlertRingtoneValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_emailAlertRingtoneCallbackCalled);
- }
- private static void OnEmailAlertRingtoneChanged(object sender, Tizen.System.EmailAlertRingtoneChangedEventArgs e)
- {
- s_emailAlertRingtoneCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_emailAlertRingtoneValue.CompareTo(e.Value) == 0, "OnEmailAlertRingtoneChanged: The callback should receive the latest value for the property.");
- }
-
- // UsbDebuggingEnabled
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:UsbDebuggingEnabled is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.UsbDebuggingEnabled A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void UsbDebuggingEnabled_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.UsbDebuggingEnabled);
- Tizen.System.SystemSettings.UsbDebuggingEnabled = true;
- Assert.IsTrue(Tizen.System.SystemSettings.UsbDebuggingEnabled, "UsbDebuggingEnabled_READ_WRITE: Set value and get value of the property should be same.");
- Tizen.System.SystemSettings.UsbDebuggingEnabled = false;
- Assert.IsFalse(Tizen.System.SystemSettings.UsbDebuggingEnabled, "UsbDebuggingEnabled_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_usbDebuggingCallbackCalled = false;
- private static bool s_usbDebuggingSettingValue = !Tizen.System.SystemSettings.UsbDebuggingEnabled;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:UsbDebuggingSettingChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.UsbDebuggingSettingChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task UsbDebuggingSettingChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.UsbDebuggingSettingChanged += OnUsbDebuggingSettingChanged;
- Tizen.System.SystemSettings.UsbDebuggingEnabled = s_usbDebuggingSettingValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_usbDebuggingCallbackCalled);
-
- s_usbDebuggingSettingValue = !s_usbDebuggingSettingValue;
- s_usbDebuggingCallbackCalled = false;
- Tizen.System.SystemSettings.UsbDebuggingEnabled = s_usbDebuggingSettingValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_usbDebuggingCallbackCalled);
- s_usbDebuggingCallbackCalled = false;
-
- Tizen.System.SystemSettings.UsbDebuggingSettingChanged -= OnUsbDebuggingSettingChanged;
- Tizen.System.SystemSettings.UsbDebuggingEnabled = s_usbDebuggingSettingValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_usbDebuggingCallbackCalled);
- }
- private static void OnUsbDebuggingSettingChanged(object sender, Tizen.System.UsbDebuggingSettingChangedEventArgs e)
- {
- s_usbDebuggingCallbackCalled = true;
- Assert.IsInstanceOf<bool>(e.Value);
- Assert.IsTrue(e.Value == s_usbDebuggingSettingValue, "OnUsbDebuggingSettingChanged: The callback should receive the latest value for the property.");
- }
-
- // Data3GNetworkEnabled
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:Data3GNetworkEnabled is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.Data3GNetworkEnabled A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void Data3GNetworkEnabled_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.Data3GNetworkEnabled);
- Tizen.System.SystemSettings.Data3GNetworkEnabled = true;
- Assert.IsTrue(Tizen.System.SystemSettings.Data3GNetworkEnabled, "Data3GNetworkEnabled_READ_WRITE: Set value and get value of the property should be same");
- Tizen.System.SystemSettings.Data3GNetworkEnabled = false;
- Assert.IsFalse(Tizen.System.SystemSettings.Data3GNetworkEnabled, "Data3GNetworkEnabled_READ_WRITE: Set value and get value of the property should be same");
- }
-
- private static bool s_data3GNetworkCallbackCalled = false;
- private static bool s_data3GNetworkSettingValue = !Tizen.System.SystemSettings.Data3GNetworkEnabled;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:Data3GNetworkSettingChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.Data3GNetworkSettingChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task Data3GNetworkSettingChanged_CHECK_EVENT()
- {
- /* TEST CODE */
- Tizen.System.SystemSettings.Data3GNetworkSettingChanged += OnData3GNetworkSettingChanged;
- Tizen.System.SystemSettings.Data3GNetworkEnabled = s_data3GNetworkSettingValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_data3GNetworkCallbackCalled);
-
- s_data3GNetworkSettingValue = !s_data3GNetworkSettingValue;
- s_data3GNetworkCallbackCalled = false;
- Tizen.System.SystemSettings.Data3GNetworkEnabled = s_data3GNetworkSettingValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_data3GNetworkCallbackCalled);
- s_data3GNetworkCallbackCalled = false;
-
- Tizen.System.SystemSettings.Data3GNetworkSettingChanged -= OnData3GNetworkSettingChanged;
- Tizen.System.SystemSettings.Data3GNetworkEnabled = s_data3GNetworkSettingValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_data3GNetworkCallbackCalled);
- }
- private static void OnData3GNetworkSettingChanged(object sender, Tizen.System.Data3GNetworkSettingChangedEventArgs e)
- {
- s_data3GNetworkCallbackCalled = true;
- Assert.IsInstanceOf<bool>(e.Value);
- Assert.IsTrue(e.Value == s_data3GNetworkSettingValue, "OnData3GNetworkSettingChanged: The callback should receive the latest value for the property.");
- }
-
- // LockscreenApp
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:LockscreenApp is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.LockscreenApp A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void LockscreenApp_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.LockscreenApp);
- var setValue = "org.tizen.lockscreen";
- Tizen.System.SystemSettings.LockscreenApp = setValue;
- var getValue = Tizen.System.SystemSettings.LockscreenApp;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "LockscreenApp_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_lockScreenAppCallbackCalled = false;
- private static readonly string s_lockscreenAppValue = "org.tizen.lockscreen";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:LockscreenAppChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.LockscreenAppChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task LockscreenAppChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.LockscreenAppChanged += OnLockscreenAppChanged;
- Tizen.System.SystemSettings.LockscreenApp = s_lockscreenAppValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_lockScreenAppCallbackCalled);
- s_lockScreenAppCallbackCalled = false;
- Tizen.System.SystemSettings.LockscreenAppChanged -= OnLockscreenAppChanged;
- Tizen.System.SystemSettings.LockscreenApp = s_lockscreenAppValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_lockScreenAppCallbackCalled);
- }
- private static void OnLockscreenAppChanged(object sender, Tizen.System.LockscreenAppChangedEventArgs e)
- {
- s_lockScreenAppCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_lockscreenAppValue.CompareTo(e.Value) == 0, "OnLockscreenAppChanged: The callback should receive the latest value for the property.");
- }
-
- // DefaultFontType
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:DefaultFontType is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.DefaultFontType A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void DefaultFontType_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.DefaultFontType);
- }
-
- // LocaleCountry
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:LocaleCountry is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleCountry A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void LocaleCountry_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.LocaleCountry);
- var setValue = "en_US";
- Tizen.System.SystemSettings.LocaleCountry = setValue;
- var getValue = Tizen.System.SystemSettings.LocaleCountry;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "LocaleCountry_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_localeCountryCallbackCalled = false;
- private static readonly string s_localeCountryValue = "en_US";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:LocaleCountryChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleCountryChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task LocaleCountryChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.LocaleCountryChanged += OnLocaleCountryChanged;
- Tizen.System.SystemSettings.LocaleCountry = s_localeCountryValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_localeCountryCallbackCalled);
- s_localeCountryCallbackCalled = false;
- Tizen.System.SystemSettings.LocaleCountryChanged -= OnLocaleCountryChanged;
- Tizen.System.SystemSettings.LocaleCountry = s_localeCountryValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_localeCountryCallbackCalled);
- }
- private static void OnLocaleCountryChanged(object sender, Tizen.System.LocaleCountryChangedEventArgs e)
- {
- s_localeCountryCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_localeCountryValue.CompareTo(e.Value) == 0, "OnLocaleCountryChanged: The callback should receive the latest value for the property.");
- }
-
- // LocaleLanguage
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:LocaleLanguage is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleLanguage A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void LocaleLanguage_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.LocaleLanguage);
- var setValue = "en_US";
- Tizen.System.SystemSettings.LocaleLanguage = setValue;
- var getValue = Tizen.System.SystemSettings.LocaleLanguage;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "LocaleLanguage_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_localeLanguageCallbackCalled = false;
- private static readonly string s_localeLanguageValue = "en_US";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:LocaleLanguageChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleLanguageChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task LocaleLanguageChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.LocaleLanguageChanged += OnLocaleLanguageChanged;
- Tizen.System.SystemSettings.LocaleLanguage = s_localeLanguageValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_localeLanguageCallbackCalled);
- s_localeLanguageCallbackCalled = false;
- Tizen.System.SystemSettings.LocaleLanguageChanged -= OnLocaleLanguageChanged;
- Tizen.System.SystemSettings.LocaleLanguage = s_localeLanguageValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_localeLanguageCallbackCalled);
- }
- private static void OnLocaleLanguageChanged(object sender, Tizen.System.LocaleLanguageChangedEventArgs e)
- {
- s_localeLanguageCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_localeLanguageValue.CompareTo(e.Value) == 0, "OnLocaleLanguageChanged: The callback should receive the latest value for the property.");
- }
-
- // LocaleTimeformat24Hour
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:LocaleTimeformat24Hour is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleTimeformat24Hour A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void LocaleTimeformat24Hour_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled);
- Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled = true;
- Assert.IsTrue(Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled, "LocaleTimeformat24Hour_READ_WRITE: Set value and get value of the property should be same.");
- Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled = false;
- Assert.IsFalse(Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled, "LocaleTimeformat24Hour_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_timeFormatCallbackCalled = false;
- private static bool s_localeTimeformat24HourValue = !Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:LocaleTimeformat24HourChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleTimeformat24HourChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task LocaleTimeformat24HourChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.LocaleTimeFormat24HourSettingChanged += OnLocaleTimeformat24HourChanged;
- Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled = s_localeTimeformat24HourValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_timeFormatCallbackCalled);
- s_timeFormatCallbackCalled = false;
-
- s_localeTimeformat24HourValue = !s_localeTimeformat24HourValue;
- Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled = s_localeTimeformat24HourValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_timeFormatCallbackCalled);
- s_timeFormatCallbackCalled = false;
-
- Tizen.System.SystemSettings.LocaleTimeFormat24HourSettingChanged -= OnLocaleTimeformat24HourChanged;
- Tizen.System.SystemSettings.LocaleTimeFormat24HourEnabled = s_localeTimeformat24HourValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_timeFormatCallbackCalled);
- }
-
- private static void OnLocaleTimeformat24HourChanged(object sender, Tizen.System.LocaleTimeFormat24HourSettingChangedEventArgs e)
- {
- s_timeFormatCallbackCalled = true;
- Assert.IsInstanceOf<bool>(e.Value);
- Assert.IsTrue(e.Value == s_localeTimeformat24HourValue, "OnLocaleTimeformat24HourChanged: The callback should receive the latest value for the property.");
- }
-
- // LocaleTimezone
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:LocaleTimezone is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleTimezone A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void LocaleTimezone_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.LocaleTimeZone);
- var setValue = "Pacific/Tahiti";
- Tizen.System.SystemSettings.LocaleTimeZone = setValue;
- var getValue = Tizen.System.SystemSettings.LocaleTimeZone;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "LocaleTimezone_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_localeTimeZoneCallbackCalled = false;
- private static readonly string s_localeTimezoneValue = "Pacific/Tahiti";
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:LocaleTimezoneChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.LocaleTimezoneChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task LocaleTimezoneChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.LocaleTimeZoneChanged += OnLocaleTimezoneChanged;
- Tizen.System.SystemSettings.LocaleTimeZone = s_localeTimezoneValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_localeTimeZoneCallbackCalled);
- s_localeTimeZoneCallbackCalled = false;
-
- Tizen.System.SystemSettings.LocaleTimeZoneChanged -= OnLocaleTimezoneChanged;
- Tizen.System.SystemSettings.LocaleTimeZone = s_localeTimezoneValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_localeTimeZoneCallbackCalled);
- }
- private static void OnLocaleTimezoneChanged(object sender, Tizen.System.LocaleTimeZoneChangedEventArgs e)
- {
- s_localeTimeZoneCallbackCalled = true;
- Assert.IsInstanceOf<string>(e.Value);
- Assert.IsTrue(s_localeTimezoneValue.CompareTo(e.Value) == 0, "OnLocaleTimezoneChanged: The callback should receive the latest value for the property.");
- }
-
- // SoundLock
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:SoundLock is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.SoundLock A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void SoundLock_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.SoundLockEnabled);
- }
-
- // SoundSilentMode
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:SoundSilentMode is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.SoundSilentMode A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void SoundSilentMode_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.SoundSilentModeEnabled);
- }
-
- // SoundTouch
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:SoundTouch is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.SoundTouch A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void SoundTouch_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.SoundTouchEnabled);
- }
-
- // DisplayScreenRotationAuto
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:DisplayScreenRotationAuto is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.DisplayScreenRotationAuto A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void DisplayScreenRotationAuto_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.DisplayScreenRotationAutoEnabled);
- }
-
- // DeviceName
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:DeviceName is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.DeviceName A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void DeviceName_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.DeviceName);
- }
-
- // MotionEnabled
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:MotionEnabled is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.MotionEnabled A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void MotionEnabled_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.MotionEnabled);
- }
-
- // NetworkWifiNotification
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:NetworkWifiNotification is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.NetworkWifiNotification A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void NetworkWifiNotification_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.NetworkWifiNotificationEnabled);
- }
-
- // NetworkFlightMode
- [Test]
- [Category("P1")]
- [Description("Test if get for SystemSettings:NetworkFlightMode is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.NetworkFlightMode A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void NetworkFlightMode_READ_ONLY()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<bool>(Tizen.System.SystemSettings.NetworkFlightModeEnabled);
- }
-
- //// ScreenBacklightTime
- //[Test]
- //[Category("P1")]
- //[Description("Test if set/get for SystemSettings:ScreenBacklightTime is working properly")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTime A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW MAE")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static void ScreenBacklightTime_READ_WRITE_ALL()
- //{
- // /* TEST CODE */
- // Assert.IsInstanceOf<int>(Tizen.System.SystemSettings.ScreenBacklightTime);
- // var setValue = 15;
- // Tizen.System.SystemSettings.ScreenBacklightTime = setValue;
- // var getValue = Tizen.System.SystemSettings.ScreenBacklightTime;
- // Assert.IsTrue(setValue == getValue, "Set value and get value of the property should be same.");
-
- // setValue = 30;
- // Tizen.System.SystemSettings.ScreenBacklightTime = setValue;
- // getValue = Tizen.System.SystemSettings.ScreenBacklightTime;
- // Assert.IsTrue(setValue == getValue, "Set value and get value of the property should be same.");
-
- // setValue = 60;
- // Tizen.System.SystemSettings.ScreenBacklightTime = setValue;
- // getValue = Tizen.System.SystemSettings.ScreenBacklightTime;
- // Assert.IsTrue(setValue == getValue, "Set value and get value of the property should be same.");
-
- // setValue = 120;
- // Tizen.System.SystemSettings.ScreenBacklightTime = setValue;
- // getValue = Tizen.System.SystemSettings.ScreenBacklightTime;
- // Assert.IsTrue(setValue == getValue, "Set value and get value of the property should be same.");
-
- // setValue = 300;
- // Tizen.System.SystemSettings.ScreenBacklightTime = setValue;
- // getValue = Tizen.System.SystemSettings.ScreenBacklightTime;
- // Assert.IsTrue(setValue == getValue, "Set value and get value of the property should be same.");
-
- // //setValue = 600;
- // //Tizen.System.SystemSettings.ScreenBacklightTime = setValue;
- // //getValue = Tizen.System.SystemSettings.ScreenBacklightTime;
- // //Assert.IsTrue(setValue == getValue, "Set value and get value of the property should be same.");
- //}
-
- //private static bool s_screenBacklightTime15CallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:ScreenBacklightTimeChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTimeChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task ScreenBacklightTimeChanged_CHECK_EVENT_15()
- //{
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged += OnScreenBacklightTime15Changed;
- // Tizen.System.SystemSettings.ScreenBacklightTime = 15;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged -= OnScreenBacklightTime15Changed;
- // Assert.IsTrue(s_screenBacklightTime15CallbackCalled);
- // s_screenBacklightTime15CallbackCalled = false;
- //}
- //private static void OnScreenBacklightTime15Changed(object sender, Tizen.System.SystemSettings.ScreenBacklightTimeChangedEventArgs e)
- //{
- // s_screenBacklightTime15CallbackCalled = true;
- // Assert.IsInstanceOf<int>(e.Value);
- // Assert.IsTrue(e.Value == 15, "The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_screenBacklightTime30CallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:ScreenBacklightTimeChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTimeChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task ScreenBacklightTimeChanged_CHECK_EVENT_30()
- //{
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged += OnScreenBacklightTime30Changed;
- // Tizen.System.SystemSettings.ScreenBacklightTime = 30;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged -= OnScreenBacklightTime30Changed;
- // Assert.IsTrue(s_screenBacklightTime30CallbackCalled);
- // s_screenBacklightTime30CallbackCalled = false;
- //}
- //private static void OnScreenBacklightTime30Changed(object sender, Tizen.System.SystemSettings.ScreenBacklightTimeChangedEventArgs e)
- //{
- // s_screenBacklightTime30CallbackCalled = true;
- // Assert.IsInstanceOf<int>(e.Value);
- // Assert.IsTrue(e.Value == 30, "The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_screenBacklightTime60CallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:ScreenBacklightTimeChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTimeChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task ScreenBacklightTimeChanged_CHECK_EVENT_60()
- //{
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged += OnScreenBacklightTime60Changed;
- // Tizen.System.SystemSettings.ScreenBacklightTime = 60;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged -= OnScreenBacklightTime60Changed;
- // Assert.IsTrue(s_screenBacklightTime60CallbackCalled);
- // s_screenBacklightTime60CallbackCalled = false;
- //}
- //private static void OnScreenBacklightTime60Changed(object sender, Tizen.System.SystemSettings.ScreenBacklightTimeChangedEventArgs e)
- //{
- // s_screenBacklightTime60CallbackCalled = true;
- // Assert.IsInstanceOf<int>(e.Value);
- // Assert.IsTrue(e.Value == 60, "The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_screenBacklightTime120CallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:ScreenBacklightTimeChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTimeChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task ScreenBacklightTimeChanged_CHECK_EVENT_120()
- //{
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged += OnScreenBacklightTime120Changed;
- // Tizen.System.SystemSettings.ScreenBacklightTime = 120;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged -= OnScreenBacklightTime120Changed;
- // Assert.IsTrue(s_screenBacklightTime120CallbackCalled);
- // s_screenBacklightTime120CallbackCalled = false;
- //}
- //private static void OnScreenBacklightTime120Changed(object sender, Tizen.System.SystemSettings.ScreenBacklightTimeChangedEventArgs e)
- //{
- // s_screenBacklightTime120CallbackCalled = true;
- // Assert.IsInstanceOf<int>(e.Value);
- // Assert.IsTrue(e.Value == 120, "The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_screenBacklightTime300CallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:ScreenBacklightTimeChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTimeChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task ScreenBacklightTimeChanged_CHECK_EVENT_300()
- //{
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged += OnScreenBacklightTime300Changed;
- // Tizen.System.SystemSettings.ScreenBacklightTime = 300;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged -= OnScreenBacklightTime300Changed;
- // Assert.IsTrue(s_screenBacklightTime300CallbackCalled);
- // s_screenBacklightTime300CallbackCalled = false;
- //}
- //private static void OnScreenBacklightTime300Changed(object sender, Tizen.System.SystemSettings.ScreenBacklightTimeChangedEventArgs e)
- //{
- // s_screenBacklightTime300CallbackCalled = true;
- // Assert.IsInstanceOf<int>(e.Value);
- // Assert.IsTrue(e.Value == 300, "The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_screenBacklightTime600CallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:ScreenBacklightTimeChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.ScreenBacklightTimeChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task ScreenBacklightTimeChanged_CHECK_EVENT_600()
- //{
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged += OnScreenBacklightTime600Changed;
- // Tizen.System.SystemSettings.ScreenBacklightTime = 600;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.ScreenBacklightTimeChanged -= OnScreenBacklightTime600Changed;
- // Assert.IsTrue(s_screenBacklightTime600CallbackCalled);
- // s_screenBacklightTime600CallbackCalled = false;
- //}
- //private static void OnScreenBacklightTime600Changed(object sender, Tizen.System.SystemSettings.ScreenBacklightTimeChangedEventArgs e)
- //{
- // s_screenBacklightTime600CallbackCalled = true;
- // Assert.IsInstanceOf<int>(e.Value);
- // Assert.IsTrue(e.Value == 600, "The callback should receive the latest value for the property.");
- //}
-
- // SoundNotification
- //[Test]
- //[Category("P1")]
- //[Description("Test if set/get for SystemSettings:SoundNotification is working properly")]
- //[Property("SPEC", "Tizen.System.SystemSettings.SoundNotification A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static void SoundNotification_READ_WRITE()
- //{
- // /* TEST CODE */
- // Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.SoundNotification);
- // var setValue = "/opt/share/settings/Alerts/General notification_sdk.wav";
- // Tizen.System.SystemSettings.SoundNotification = setValue;
- // var getValue = Tizen.System.SystemSettings.SoundNotification;
- // Assert.IsTrue(setValue.CompareTo(getValue) == 0, "SoundNotification_READ_WRITE: Set value and get value of the property should be same.");
- //}
-
- //private static bool s_soundNotificationCallbackCalled = false;
- //private static readonly string s_soundNotificationValue = "/opt/share/settings/Alerts/General notification_sdk.wav";
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:SoundNotificationChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.SoundNotificationChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task SoundNotificationChanged_CHECK_EVENT()
- //{
- // Tizen.System.SystemSettings.SoundNotificationChanged += OnSoundNotificationChanged;
- // Tizen.System.SystemSettings.SoundNotification = s_soundNotificationValue;
- // await Task.Delay(5000);
- // Assert.IsTrue(s_soundNotificationCallbackCalled);
-
- // s_soundNotificationCallbackCalled = false;
- // Tizen.System.SystemSettings.SoundNotificationChanged -= OnSoundNotificationChanged;
- // Tizen.System.SystemSettings.SoundNotification = s_soundNotificationValue;
- // await Task.Delay(5000);
- // Assert.IsFalse(s_soundNotificationCallbackCalled);
- //}
- //private static void OnSoundNotificationChanged(object sender, Tizen.System.SystemSettings.SoundNotificationChangedEventArgs e)
- //{
- // s_soundNotificationCallbackCalled = true;
- // Assert.IsInstanceOf<string>(e.Value);
- // Assert.IsTrue(s_soundNotificationValue.CompareTo(e.Value) == 0, "OnSoundNotificationChanged: The callback should receive the latest value for the property.");
- //}
-
- // SoundNotificationRepetitionPeriod
- [Test]
- [Category("P1")]
- [Description("Test if set/get for SystemSettings:SoundNotificationRepetitionPeriod is working properly")]
- [Property("SPEC", "Tizen.System.SystemSettings.SoundNotificationRepetitionPeriod A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static void SoundNotificationRepetitionPeriod_READ_WRITE()
- {
- /* TEST CODE */
- Assert.IsInstanceOf<int>(Tizen.System.SystemSettings.SoundNotificationRepetitionPeriod);
- var setValue = 300;
- Tizen.System.SystemSettings.SoundNotificationRepetitionPeriod = setValue;
- var getValue = Tizen.System.SystemSettings.SoundNotificationRepetitionPeriod;
- Assert.IsTrue(setValue.CompareTo(getValue) == 0, "SoundNotificationRepetitionPeriod_READ_WRITE: Set value and get value of the property should be same.");
- }
-
- private static bool s_soundNotificationRepetitionPeriodCallbackCalled = false;
- private static readonly int s_soundNotificationRepetitionPeriodValue = 300;
- [Test]
- [Category("P1")]
- [Description("Check if callback to SystemSettings:SoundNotificationRepetitionPeriodChanged event is called")]
- [Property("SPEC", "Tizen.System.SystemSettings.SoundNotificationRepetitionPeriodChanged A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- public static async Task SoundNotificationRepetitionPeriodChanged_CHECK_EVENT()
- {
- Tizen.System.SystemSettings.SoundNotificationRepetitionPeriodChanged += OnSoundNotificationRepetitionPeriodChanged;
- Tizen.System.SystemSettings.SoundNotificationRepetitionPeriod = s_soundNotificationRepetitionPeriodValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_soundNotificationRepetitionPeriodCallbackCalled);
- s_soundNotificationRepetitionPeriodCallbackCalled = false;
-
- Tizen.System.SystemSettings.SoundNotificationRepetitionPeriodChanged -= OnSoundNotificationRepetitionPeriodChanged;
- Tizen.System.SystemSettings.SoundNotificationRepetitionPeriod = s_soundNotificationRepetitionPeriodValue;
- await Task.Delay(5000);
- Assert.IsFalse(s_soundNotificationRepetitionPeriodCallbackCalled);
- }
- private static void OnSoundNotificationRepetitionPeriodChanged(object sender, Tizen.System.SoundNotificationRepetitionPeriodChangedEventArgs e)
- {
- s_soundNotificationRepetitionPeriodCallbackCalled = true;
- Assert.IsInstanceOf<int>(e.Value);
- Assert.IsTrue(s_soundNotificationRepetitionPeriodValue.CompareTo(e.Value) == 0, "OnSoundNotificationRepetitionPeriodChanged: The callback should receive the latest value for the property.");
- }
-
- //// LockState
- //[Test]
- //[Category("P1")]
- //[Description("Test if set/get for SystemSettings:LockState is working properly")]
- //[Property("SPEC", "Tizen.System.SystemSettings.LockState A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "PRW MAE")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static void LockState_READ_WRITE_ALL()
- //{
- // /* TEST CODE */
- // Assert.IsInstanceOf<Tizen.System.SystemSettingsIdleLockState>(Tizen.System.SystemSettings.LockState);
- // var setValue = Tizen.System.SystemSettingsIdleLockState.Unlock;
- // Tizen.System.SystemSettings.LockState = setValue;
- // var getValue = Tizen.System.SystemSettings.LockState;
- // Assert.IsTrue(setValue == getValue, "LockState_READ_WRITE_ALL: Set value and get value of the property should be same.");
-
- // setValue = Tizen.System.SystemSettingsIdleLockState.Lock;
- // Tizen.System.SystemSettings.LockState = setValue;
- // getValue = Tizen.System.SystemSettings.LockState;
- // Assert.IsTrue(setValue == getValue, "LockState_READ_WRITE_ALL: Set value and get value of the property should be same.");
-
- // setValue = Tizen.System.SystemSettingsIdleLockState.LaunchingLock;
- // Tizen.System.SystemSettings.LockState = setValue;
- // getValue = Tizen.System.SystemSettings.LockState;
- // Assert.IsTrue(setValue == getValue, "LockState_READ_WRITE_ALL: Set value and get value of the property should be same.");
- //}
-
- //private static bool s_lockStateLockCallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:LockStateChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.LockStateChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL MAE")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task LockStateChanged_CHECK_EVENT_LOCK()
- //{
- // Tizen.System.SystemSettings.LockStateChanged += OnLockStateChangedLock;
- // Tizen.System.SystemSettings.LockState = Tizen.System.SystemSettingsIdleLockState.Lock;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.LockStateChanged += OnLockStateChangedLock;
- // Assert.IsTrue(s_lockStateLockCallbackCalled);
- // s_lockStateLockCallbackCalled = false;
- //}
- //private static void OnLockStateChangedLock(object sender, Tizen.System.SystemSettings.LockStateChangedEventArgs e)
- //{
- // s_lockStateLockCallbackCalled = true;
- // Assert.IsInstanceOf<Tizen.System.SystemSettingsIdleLockState>(e.Value);
- // Assert.IsTrue(e.Value == Tizen.System.SystemSettingsIdleLockState.Lock, "OnLockStateChangedLock: The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_lockStateUnlockCallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:LockStateChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.LockStateChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL MAE")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task LockStateChanged_CHECK_EVENT_UNLOCK()
- //{
- // Tizen.System.SystemSettings.LockStateChanged += OnLockStateChangedUnlock;
- // Tizen.System.SystemSettings.LockState = Tizen.System.SystemSettingsIdleLockState.Unlock;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.LockStateChanged -= OnLockStateChangedUnlock;
- // Assert.IsTrue(s_lockStateUnlockCallbackCalled);
- // s_lockStateLockCallbackCalled = false;
- //}
- //private static void OnLockStateChangedUnlock(object sender, Tizen.System.SystemSettings.LockStateChangedEventArgs e)
- //{
- // s_lockStateUnlockCallbackCalled = true;
- // Assert.IsInstanceOf<Tizen.System.SystemSettingsIdleLockState>(e.Value);
- // Assert.IsTrue(e.Value == Tizen.System.SystemSettingsIdleLockState.Unlock, "OnLockStateChangedUnlock: The callback should receive the latest value for the property.");
- //}
-
- //private static bool s_lockStateLaunchingLockCallbackCalled = false;
- //[Test]
- //[Category("P1")]
- //[Description("Check if callback to SystemSettings:LockStateChanged event is called")]
- //[Property("SPEC", "Tizen.System.SystemSettings.LockStateChanged A")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "EVL MAE")]
- //[Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
- //public static async Task LockStateChanged_CHECK_EVENT_LAUNCHING_LOCK()
- //{
- // Tizen.System.SystemSettings.LockStateChanged += OnLockStateChangedLaunchingLock;
- // Tizen.System.SystemSettings.LockState = Tizen.System.SystemSettingsIdleLockState.LaunchingLock;
- // await Task.Delay(5000);
- // Tizen.System.SystemSettings.LockStateChanged -= OnLockStateChangedLaunchingLock;
- // Assert.IsTrue(s_lockStateLaunchingLockCallbackCalled);
- // s_lockStateLockCallbackCalled = false;
- //}
- //private static void OnLockStateChangedLaunchingLock(object sender, Tizen.System.SystemSettings.LockStateChangedEventArgs e)
- //{
- // s_lockStateLaunchingLockCallbackCalled = true;
- // Assert.IsInstanceOf<Tizen.System.SystemSettingsIdleLockState>(e.Value);
- // Assert.IsTrue(e.Value == Tizen.System.SystemSettingsIdleLockState.LaunchingLock, "OnLockStateChangedLaunchingLock: The callback should receive the latest value for the property.");
- //}
- }
-}