public void Check_cannot_queue_when_track_is_null() { // Arrange Track trackToQueue = null; var musicPlayer = new Mock <IMusicPlayer>(); // Act var classUnderTest = new CannotQueueTrackDisabledProviderQueueRule(musicPlayer.Object); var result = classUnderTest.CannotQueue(trackToQueue, "Tester Test"); // Assert Assert.That(result != string.Empty); }
public void Check_can_queue_when_track_is_not_null() { // Arrange var trackToQueue = new Track { Name = "Test Track name", Album = new Album { Name = "Test Album name" } }; var musicPlayer = new Mock <IMusicPlayer>(); // Act var classUnderTest = new CannotQueueTrackDisabledProviderQueueRule(musicPlayer.Object); var result = classUnderTest.CannotQueue(trackToQueue, "Tester Test"); // Assert Assert.That(result == string.Empty); }