public void DocumentPlayer_Play_SetsIsPausedFalse() { DocumentViewModel document = new DocumentViewModel(); FakeDocumentPlayer player = new FakeDocumentPlayer(document); player.Play(); Assert.AreEqual(player.IsPaused, false, "IsPlused should be 'false'."); }
public void DocumentPlayer_Play_SetsIsPlayingTrue() { DocumentViewModel document = new DocumentViewModel(); FakeDocumentPlayer player = new FakeDocumentPlayer(document); player.Play(); Assert.AreEqual(player.IsPlaying, true, "IsPlaying should be 'true'."); }
public void DocumentPlayer_Pause_SetsIsPausedTrue() { DocumentViewModel document = new DocumentViewModel(); FakeDocumentPlayer player = new FakeDocumentPlayer(document); player.Pause(); Assert.AreEqual(player.IsPaused, true, "IsPlused should be 'true'."); }
public void DocumentPlayer_Stop_SetsIsPlayingAndIsPausedToFalse() { DocumentViewModel document = new DocumentViewModel(); FakeDocumentPlayer player = new FakeDocumentPlayer(document); player.Stop(); Assert.AreEqual(player.IsPaused, false, "IsPlused should be 'false'."); Assert.AreEqual(player.IsPlaying, false, "IsPlaying should be 'false'."); }