public virtual void TestShouldConvert24TagWithPaddingToBytesAndBackToEquivalentTag() { ID3v2 id3tag = new ID3v24Tag(); SetTagFields(id3tag); id3tag.SetPadding(true); byte[] data = id3tag.ToBytes(); ID3v2 id3tagCopy = new ID3v24Tag(data); Assert.AreEqual(2131 + AbstractID3v2Tag.PADDING_LENGTH, data.Length); Assert.AreEqual(id3tag, id3tagCopy); }
public virtual void TestShouldNotUsePaddingOnA24TagIfItHasAFooter() { ID3v2 id3tag = new ID3v24Tag(); SetTagFields(id3tag); id3tag.SetFooter(true); id3tag.SetPadding(true); byte[] data = id3tag.ToBytes(); Assert.AreEqual(2141, data.Length); }