From: Sangchul Lee Date: Wed, 2 Oct 2019 06:43:01 +0000 (+0900) Subject: [AudioManager][Non-ACR][Add negative testcases for Add[Remove]DeviceForStreamRouting] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adf2f34a94284bd2862febd1001ce2c11214b209;p=test%2Ftct%2Fcsharp%2Fapi.git [AudioManager][Non-ACR][Add negative testcases for Add[Remove]DeviceForStreamRouting] Change-Id: I6b61b599b0ea8ca7e3243a97e4657372b6e36212 Signed-off-by: Sangchul Lee --- diff --git a/tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioStreamPolicy.cs b/tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioStreamPolicy.cs index 9d83ef056..0feca3895 100644 --- a/tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioStreamPolicy.cs +++ b/tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioStreamPolicy.cs @@ -433,6 +433,22 @@ namespace Tizen.Multimedia.Tests } } + [Test] + [Category("P2")] + [Description("Throws if device is null")] + [Property("SPEC", "Tizen.Multimedia.AudioStreamPolicy.AddDeviceForStreamRouting M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MEX")] + [Property("AUTHOR", "Sangchul Lee, sc11.lee@samsung.com")] + public void AddDeviceForStreamRouting_ARGUMENT_NULL_EXCEPTION() + { + using (AudioStreamPolicy asp = new AudioStreamPolicy(AudioStreamType.Voip)) + { + Assert.That(() => asp.AddDeviceForStreamRouting(null), + Throws.TypeOf()); + } + } + [Test] [Category("P2")] [Description("Throws if stream type is not supported for the method")] @@ -501,6 +517,22 @@ namespace Tizen.Multimedia.Tests } } + [Test] + [Category("P2")] + [Description("Throws if device is null")] + [Property("SPEC", "Tizen.Multimedia.AudioStreamPolicy.RemoveDeviceForStreamRouting M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MEX")] + [Property("AUTHOR", "Sangchul Lee, sc11.lee@samsung.com")] + public void RemoveDeviceForStreamRouting_ARGUMENT_NULL_EXCEPTION() + { + using (AudioStreamPolicy asp = new AudioStreamPolicy(AudioStreamType.Voip)) + { + Assert.That(() => asp.RemoveDeviceForStreamRouting(null), + Throws.TypeOf()); + } + } + [Test] [Category("P1")] [Description("Sets and gets the preferred output device.")]