[AudioManager][TCSACR-285][Add negative testcase for ApplyStreamStreamRouting] 97/215197/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 2 Oct 2019 07:41:29 +0000 (16:41 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 2 Oct 2019 09:57:50 +0000 (18:57 +0900)
Remove the wrong testcase
 - ApplyStreamRouting_NO_EXCEPTION_WITHOUT_ADD_DEVICE()

Change-Id: Ie2d38a2d98ab4b53680cd208346f2b9ac320dd3f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioStreamPolicy.cs

index 0feca38..c9a8ccd 100644 (file)
@@ -483,19 +483,17 @@ namespace Tizen.Multimedia.Tests
         }
 
         [Test]
-        [Category("P1")]
-        [Description("StreamPolicy ApplyStreamRouting")]
+        [Category("P2")]
+        [Description("Throws if any device is not set")]
         [Property("SPEC", "Tizen.Multimedia.AudioStreamPolicy.ApplyStreamRouting M")]
         [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
-        public void ApplyStreamRouting_NO_EXCEPTION_WITHOUT_ADD_DEVICE()
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Sangchul Lee, sc11.lee@samsung.com")]
+        public void ApplyStreamRouting_INVALID_OPERATION_EXCEPTION()
         {
             using (AudioStreamPolicy asp = new AudioStreamPolicy(AudioStreamType.Voip))
             {
-                asp.AddDeviceForStreamRouting(AudioManager.GetConnectedDevices().First());
-
-                Assert.That(() => asp.ApplyStreamRouting(), Throws.Nothing);
+                Assert.That(() => asp.ApplyStreamRouting(), Throws.TypeOf<InvalidOperationException>());
             }
         }