[Test]
[Category("P1")]
+ [Description("Create MediaControlSearchCondition instance with content type, category, keyword and buldle")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaControlSearchCondition.MediaControlSearchCondition C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "MediaControlContentType, MediaControlSearchCategory, string")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaControlSearchCondition_CHECK_CREATE_CONSTRUCTOR_WITHOUT_BUNDLE()
+ {
+ var condition = new MediaControlSearchCondition(MediaControlContentType.Image, MediaControlSearchCategory.All, "GD");
+
+ Assert.IsNotNull(condition, "Object should not be null after initializing");
+ Assert.IsInstanceOf<MediaControlSearchCondition>(condition, "Should return MediaControlSearchCondition instance");
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("Check whether MediaControlSearchCondition throws exception if parameter is invalid")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaControlSearchCondition.MediaControlSearchCondition C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("COVPARAM", "MediaControlContentType, MediaControlSearchCategory, string")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaControlSearchCondition_THROWS_EXCEPTION_WITHOUT_BUNDLE()
+ {
+ Assert.Throws<ArgumentException>(() => new MediaControlSearchCondition(MediaControlContentType.Image - 1,
+ MediaControlSearchCategory.Artist, "GD"));
+ Assert.Throws<ArgumentException>(() => new MediaControlSearchCondition(MediaControlContentType.NotDecided + 1,
+ MediaControlSearchCategory.Artist, "GD"));
+
+ Assert.Throws<ArgumentException>(() => new MediaControlSearchCondition(MediaControlContentType.Image,
+ MediaControlSearchCategory.All - 1, "GD"));
+ Assert.Throws<ArgumentException>(() => new MediaControlSearchCondition(MediaControlContentType.Image,
+ MediaControlSearchCategory.Tpo + 1, "GD"));
+
+ Assert.Throws<ArgumentNullException>(() => new MediaControlSearchCondition(MediaControlContentType.Image,
+ MediaControlSearchCategory.Artist, null));
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create MediaControlSearchCondition instance with content type, keyword, buldle and all category")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaControlSearchCondition.MediaControlSearchCondition C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "MediaControlContentType, string")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaControlSearchCondition_CHECK_CREATE_CONSTRUCTOR_WITH_ALL_CATEGORY_WITHOUT_BUNDLE()
+ {
+ var condition = new MediaControlSearchCondition(MediaControlContentType.Image, "GD");
+
+ Assert.IsNotNull(condition, "Object should not be null after initializing");
+ Assert.IsInstanceOf<MediaControlSearchCondition>(condition, "Should return MediaControlSearchCondition instance");
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("Check whether MediaControlSearchCondition throws exception if parameter is invalid")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaControlSearchCondition.MediaControlSearchCondition C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("COVPARAM", "MediaControlContentType, string")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaControlSearchCondition_WITH_ALL_CATEGORY_THROWS_EXCEPTION_WITHOUT_BUNDLE()
+ {
+ Assert.Throws<ArgumentException>(() => new MediaControlSearchCondition(MediaControlContentType.Image - 1, "GD"));
+ Assert.Throws<ArgumentException>(() => new MediaControlSearchCondition(MediaControlContentType.NotDecided + 1, "GD"));
+
+ Assert.Throws<ArgumentNullException>(() => new MediaControlSearchCondition(MediaControlContentType.Image, null));
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Check whether ContentType property is type of MediaControlContentType or not.")]
[Property("SPEC", "Tizen.Multimedia.Remoting.MediaControlSearchCondition.ContentType A")]
[Property("SPEC_URL", "-")]