From: nam Date: Fri, 26 Apr 2019 03:54:32 +0000 (+0900) Subject: [MediaPlayer][TCSACR-242] modify TCs following the changes of streaming API X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09abc4a1d192a7af3302aa2c006ff17a5540e891;p=test%2Ftct%2Fcsharp%2Fapi.git [MediaPlayer][TCSACR-242] modify TCs following the changes of streaming API Change-Id: I39081ec61fbb52c81975d1d405f0f28477ebb77a --- diff --git a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs index d05f951e0..cab6094c1 100755 --- a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs +++ b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs @@ -1519,7 +1519,7 @@ namespace Tizen.Multimedia.Tests [Test] [Category("P1")] - [Description("GetDownloadProgress normal test")] + [Description("GetDownloadProgress normal test for all available states")] [Property("SPEC", "Tizen.Multimedia.Player.GetDownloadProgress M")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "MCST")] @@ -1527,9 +1527,12 @@ namespace Tizen.Multimedia.Tests public async Task GetDownloadProgress_CHECK() { var player = await GetPreparedPlayer(_streamingSource); + Assert.That(() => player.GetDownloadProgress(), Throws.Nothing); player.Start(); + Assert.That(() => player.GetDownloadProgress(), Throws.Nothing); + player.Stop(); Assert.That(() => player.GetDownloadProgress(), Throws.Nothing); } @@ -1540,12 +1543,9 @@ namespace Tizen.Multimedia.Tests [Property("SPEC_URL", "-")] [Property("CRITERIA", "MEX")] [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")] - public async Task GetDownloadProgress_THROWS_IF_NOT_VALID_STATE() + public void GetDownloadProgress_THROWS_IF_NOT_VALID_STATE() { Assert.That(() => TestPlayer.GetDownloadProgress(), Throws.InvalidOperationException); - - var player = await GetPreparedPlayer(); - Assert.That(() => player.GetDownloadProgress(), Throws.InvalidOperationException); } [Test] @@ -1898,7 +1898,7 @@ namespace Tizen.Multimedia.Tests [Test] [Category("P2")] - [Description("Any attempt to access the ReplayGain if the player has been disposed of")] + [Description("AudioPitchEnabled throws exception if the player is in a not valid state")] [Property("SPEC", "Tizen.Multimedia.Player.AudioPitchEnabled A")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "PEX")] @@ -1911,7 +1911,7 @@ namespace Tizen.Multimedia.Tests [Test] [Category("P2")] - [Description("Any attempt to access the ReplayGain if the player has been disposed of")] + [Description("Any attempt to access the AudioPitchEnabled if the player has been disposed of")] [Property("SPEC", "Tizen.Multimedia.Player.AudioPitchEnabled A")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "PEX")] @@ -2015,7 +2015,7 @@ namespace Tizen.Multimedia.Tests [Test] [Category("P2")] - [Description("Any attempt to access the ReplayGain if the player has been disposed of")] + [Description("Any attempt to access the AudioPitch if the player has been disposed of")] [Property("SPEC", "Tizen.Multimedia.Player.AudioPitch A")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "PEX")]