public void AddMethodShouldAppendNewValue() { var vorbisComment = new VorbisComment(); vorbisComment.Add("ARTIST", "Aaron"); vorbisComment.Add("ARTIST", "Lenoir"); Assert.AreEqual(2, vorbisComment.Artist.Count); Assert.AreEqual("Aaron", vorbisComment.Artist.Value); Assert.AreEqual("Aaron", vorbisComment.Artist[0]); Assert.AreEqual("Lenoir", vorbisComment.Artist[1]); }
public void AddMethodShouldAppendMultipleValues() { var vorbisComment = new VorbisComment(); vorbisComment.Add("ARTIST", new string[] { "Aaron", "Lenoir" }); vorbisComment.Add("ARTIST", "Third"); Assert.AreEqual(3, vorbisComment.Artist.Count); Assert.AreEqual("Aaron", vorbisComment.Artist[0]); Assert.AreEqual("Lenoir", vorbisComment.Artist[1]); Assert.AreEqual("Third", vorbisComment.Artist[2]); }
public void AddMethodShouldAddSingleValueTag() { var vorbisComment = new VorbisComment(); vorbisComment.Add("ARTIST", "Aaron"); Assert.AreEqual(1, vorbisComment.Artist.Count); Assert.AreEqual("Aaron", vorbisComment.Artist.Value); }
public void ReplaceMethodShouldReplaceAllValues() { var vorbisComment = new VorbisComment(); vorbisComment.Add("ARTIST", new string[] { "Aaron", "Lenoir" }); vorbisComment.Replace("ARTIST", "Test"); Assert.AreEqual(1, vorbisComment.Artist.Count); Assert.AreEqual("Test", vorbisComment.Artist[0]); }