Exemplo n.º 1
0
        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.");
        }
Exemplo n.º 2
0
        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.");
        }
Exemplo n.º 3
0
        public void RemoveMethodShouldNotThrowErrorIfTagNotFound()
        {
            var vorbisComment = new VorbisComment();

            vorbisComment.Remove("BLABLABLA");
        }