- 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.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.SystemSettings.SoundNotificationChanged += OnSoundNotificationChanged;
- Tizen.System.SystemSettings.SystemSettings.SoundNotification = s_soundNotificationValue;
- await Task.Delay(5000);
- Assert.IsTrue(s_soundNotificationCallbackCalled);
- s_soundNotificationCallbackCalled = false;
- }
- 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.");
- }
+ //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.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.SystemSettings.SoundNotificationChanged += OnSoundNotificationChanged;
+ // Tizen.System.SystemSettings.SystemSettings.SoundNotification = s_soundNotificationValue;
+ // await Task.Delay(5000);
+ // Assert.IsTrue(s_soundNotificationCallbackCalled);
+
+ // s_soundNotificationCallbackCalled = false;
+ // Tizen.System.SystemSettings.SystemSettings.SoundNotificationChanged -= OnSoundNotificationChanged;
+ // Tizen.System.SystemSettings.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.");
+ //}