[AudioManager][Non-ACR] Changed to count running device in whole type, not specific... 00/190700/2
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 5 Oct 2018 01:58:09 +0000 (10:58 +0900)
committerLee Sanghoon <shooney.lee@samsung.com>
Fri, 5 Oct 2018 02:02:49 +0000 (02:02 +0000)
Change-Id: Ia4d7c398d2264a4cec749f85d74c2fd0107d9740

tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioDevice.cs

index 42a4644..408b25d 100644 (file)
@@ -119,8 +119,8 @@ namespace Tizen.Multimedia.Tests
                 await Task.Delay(300);
 
                 // We need to check IsRunning property while audioDevice is running.
-                Assert.IsTrue(AudioManager.GetConnectedDevices().FirstOrDefault(
-                    device => device.Type == AudioDeviceType.BuiltinSpeaker).IsRunning);
+                Assert.That(() => AudioManager.GetConnectedDevices().Count(d => d.IsRunning == true),
+                    Is.GreaterThan(0));
             }
             finally
             {