}
[Test]
+ [Category("P2")]
+ [Description("Check ArgumentException for Play API with non-existent pattern.")]
+ [Property("SPEC", "Tizen.System.Feedback.Play M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MEX")]
+ [Property("AUTHOR", "Yunmi Ha, yunmi.ha@samsung.com")]
+ public void Play_CHECK_ARGUMENT_EXCEPTION_ALL_TYPE()
+ {
+ Feedback feedback = new Feedback();
+
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Play TEST");
+ try
+ {
+ feedback.Play(FeedbackType.All, "NonExistentPattern");
+ Assert.Fail("Did not throw any exception with FeedbackType.ALL param.");
+ }
+ catch (Exception e)
+ {
+ Assert.IsInstanceOf<ArgumentException>(e, "ArgumentException should be thrown for invalid item select. " + e.GetType());
+ }
+ }
+
+ [Test]
[Category("P1")]
[Description("Test if Stop method working properly")]
[Property("SPEC", "Tizen.System.Feedback.Stop M")]