--- /dev/null
+/*
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+
+using NUnit.Framework;
+
+namespace Tizen.Multimedia.Remoting.Tests {
+
+ [TestFixture]
+ [Description("Tizen.Multimedia.Remoting.MediaFileSource Tests")]
+ public class MediaFileSourceTests : TestBase
+ {
+ [Test]
+ [Category("P1")]
+ [Description("Create the MediaFileSource instance and check whether instance is created property or not.")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaFileSource.MediaFileSource C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaFileSource_INIT_VIDEO()
+ {
+ var mediaFileSource = new MediaFileSource(MediaType.Video, VideoFilePath);
+ Assert.IsNotNull(mediaFileSource, "MediaFileSource should not be null.");
+ Assert.IsInstanceOf<MediaFileSource>(mediaFileSource, "Should return MediaFileSource instance.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create the MediaFileSource instance and check whether instance is created property or not.")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaFileSource.MediaFileSource C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaFileSource_INIT_AUDIO()
+ {
+ var mediaFileSource = new MediaFileSource(MediaType.Audio, AudioFilePath);
+ Assert.IsNotNull(mediaFileSource, "MediaFileSource should not be null.");
+ Assert.IsInstanceOf<MediaFileSource>(mediaFileSource, "Should return MediaFileSource instance.");
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("Create the MediaFileSource instance with invalid parameter and check whether throws exception or not.")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaFileSource.MediaFileSource C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaFileSource_THROWS_IF_NULL_PARAM_AUDIO()
+ {
+ Assert.That(() => new MediaFileSource(MediaType.Audio, null), Throws.ArgumentNullException,
+ "Should throw ArgumentNullException");
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("Create the MediaFileSource instance with invalid parameter and check whether throws exception or not.")]
+ [Property("SPEC", "Tizen.Multimedia.Remoting.MediaFileSource.MediaFileSource C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void MediaFileSource_THROWS_IF_NULL_PARAM_VIDEO()
+ {
+ Assert.That(() => new MediaFileSource(MediaType.Video, null), Throws.ArgumentNullException,
+ "Should throw ArgumentNullException");
+ }
+ }
+}
\ No newline at end of file