[MediaPlayer][ACR-154] add testcase for replaygain API 78/183378/2
authornam <just.nam@samsung.com>
Thu, 5 Jul 2018 05:10:19 +0000 (14:10 +0900)
committernam <just.nam@samsung.com>
Fri, 6 Jul 2018 05:38:31 +0000 (14:38 +0900)
Change-Id: Ic656408a82c71906d0224aea0d9d0a5971f05145

tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs

index a9313f8..067f2db 100644 (file)
@@ -297,6 +297,51 @@ namespace Tizen.Multimedia.Tests
         }
         #endregion
 
+        #region ReplayGain
+
+        [Test]
+        [Category("P1")]
+        [Description("Default ReplayGain value is false")]
+        [Property("SPEC", "Tizen.Multimedia.Player.ReplayGain A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PDV")]
+        [Property("AUTHOR", "Jeongyoon Nam, just.nam@samsung.com")]
+        public void ReplayGain_DEFAULT()
+        {
+            Assert.That(TestPlayer.ReplayGain, Is.False);
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("check whether ReplayGain is readable and writable")]
+        [Property("SPEC", "Tizen.Multimedia.Player.ReplayGain A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Jeongyoon Nam, just.nam@samsung.com")]
+        public void ReplayGain_SET_GET()
+        {
+            const bool newValue = true;
+
+            TestPlayer.ReplayGain = newValue;
+            Assert.That(TestPlayer.ReplayGain, Is.EqualTo(newValue));
+        }
+
+
+        [Test]
+        [Category("P2")]
+        [Description("Any attempt to access the ReplayGain if the player has been disposed of")]
+        [Property("SPEC", "Tizen.Multimedia.Player.ReplayGain A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PEX")]
+        [Property("AUTHOR", "Jeongyoon Nam, just.nam@samsung.com")]
+        public void ReplayGain_DISPOSED()
+        {
+            GetIdlePlayer().Dispose();
+            Assert.That(() => TestPlayer.ReplayGain, Throws.TypeOf<ObjectDisposedException>());
+        }
+
+        #endregion
+
         #region AudioOnly
 
         [Test]