From 3a1e65e3761566fba6619dda0b3a10931666a0ac Mon Sep 17 00:00:00 2001 From: nam Date: Thu, 5 Jul 2018 14:10:19 +0900 Subject: [PATCH] [MediaPlayer][ACR-154] add testcase for replaygain API Change-Id: Ic656408a82c71906d0224aea0d9d0a5971f05145 --- .../Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) 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] -- 2.7.4