public void GetTitle_FilePathNotExists() { //arrange _fixture = new Mp3Item(@"C:\Gibtsnicht\unbekannt.mp3"); //act var title = _fixture.Title; //assert Assert.That(title, Is.Not.Null); Assert.That(title, Is.EqualTo("--[File not found]--")); }
public void GetThumbnail_WithMp3WithNoImage() { //arrange _fixture = new Mp3Item(@"C:\Users\user\Music\TestMediaFiles\002 - Lena - Taken By A Stranger.mp3"); //act var thumbnail = _fixture.Thumbnail; //assert Assert.That(thumbnail, Is.Null); //Assert.That(thumbnail, Is.EqualTo("Bruno Mars")); }
public void GetTitle_FilePathIsEmpty() { //arrange _fixture = new Mp3Item(""); //act var title = _fixture.Title; //assert Assert.That(title, Is.Not.Null); Assert.That(title, Is.EqualTo("--[File not found]--")); }
public void TestInit() { _fixture = new Mp3Item(@"C:\Users\user\Music\TestMediaFiles\001 - Bruno Mars - Grenade.mp3"); }