From: nam Date: Thu, 5 Jul 2018 05:10:19 +0000 (+0900) Subject: [MediaPlayer][ACR-154] add testcase for replaygain API X-Git-Tag: tct5.0_m2~143^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a1e65e3761566fba6619dda0b3a10931666a0ac;p=test%2Ftct%2Fcsharp%2Fapi.git [MediaPlayer][ACR-154] add testcase for replaygain API Change-Id: Ic656408a82c71906d0224aea0d9d0a5971f05145 --- diff --git a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs index a9313f8..067f2db 100644 --- a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs +++ b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs @@ -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()); + } + + #endregion + #region AudioOnly [Test]