Skip to content

Commit

Permalink
Removed unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
markjamesm committed Dec 4, 2023
1 parent 5d02199 commit 42bcc78
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions MusicSharpTests/WinPlayerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ namespace MusicSharpTests;
public class WinPlayerTests
{
[Test]
public void PlayFromPlaylist_NullFile()
public void Play_NullFile()
{
// arrange
var player = new WinPlayer();
var isFileValid = File.Exists("thisisafail.exe");

// act and assert
Assert.Throws<NullReferenceException>(() => player.PlayFromPlaylist(null));
Assert.That(isFileValid, Is.False);
}

[Test]
public void OpenStream_NullFile()
public void PlayFromPlaylist_NullFile()
{
// arrange
var player = new WinPlayer();

// act and assert
Assert.Throws<NullReferenceException>(() => player.OpenStream(null));
Assert.Throws<NullReferenceException>(() => player.PlayFromPlaylist(null));
}
}

0 comments on commit 42bcc78

Please sign in to comment.