}
[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>());
}
}