コード例 #1
0
 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'.");
 }
コード例 #2
0
 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'.");
 }
コード例 #3
0
        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'.");
        }
コード例 #4
0
        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'.");
        }