Esempio n. 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'.");
 }
Esempio n. 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'.");
 }
Esempio n. 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'.");
        }
Esempio n. 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'.");
        }