public void SongFinished_EmptyQueue_EmptyLibrary_PlayNothing() { var engine = new FakePlayerEngine(); control.Player.RegisterPlayerEngine(engine); var song = new Song("artist", "album", "song", "1", "path"); control.Player.PlaySong(song); engine.Finish(); Assert.AreEqual(null, control.Player.NowPlaying); }
public void SongFinished_PlayNextFromQueue() { var engine = new FakePlayerEngine(); control.Player.RegisterPlayerEngine(engine); PlayerEngineFactory.Engine = engine; var song = new Song("artist", "album", "song", "1", "path"); var song2 = new Song("artist", "album", "song2", "2", "path2"); control.Player.PlaySong(song); control.Player.PlaySong(song2); engine.Finish(); Assert.AreEqual(song2, engine.PlayedSong); Assert.AreEqual(song2, control.Player.NowPlaying); }