public void RemoveMethodShouldRemoveTagWithSpecificValue() { var vorbisComment = new VorbisComment(); vorbisComment["ARTIST"] = new VorbisCommentValues("Aaron"); vorbisComment.Remove("ARTIST", "Lenoir"); Assert.IsTrue(vorbisComment.Artist.Count == 1, "Tag was removed when it shouldn't have been."); vorbisComment.Remove("ARTIST", "Aaron"); Assert.IsTrue(vorbisComment.Artist.Count == 0, "Tag was not removed."); }
public void RemoveMethodShouldRemoveTag() { var vorbisComment = new VorbisComment(); vorbisComment["ARTIST"] = new VorbisCommentValues("Aaron"); vorbisComment.Remove("ARTIST"); Assert.IsTrue(vorbisComment.Artist.Count == 0, "Tag was not removed."); }
public void RemoveMethodShouldNotThrowErrorIfTagNotFound() { var vorbisComment = new VorbisComment(); vorbisComment.Remove("BLABLABLA"); }