public void ConstructorTest1()
 {
     var frame = new UniqueFileIdentifierFrame();
     Assert.AreEqual(frame.Descriptor.Id, "UFID");
     Assert.IsNotNull(frame.Identifier);
     Assert.IsEmpty(frame.Owner);
     Assert.AreEqual(frame.Type, FrameType.UniqueFileIdentifier);
 }
 public void ConstructorTest2()
 {
     var bytes = new byte[] {0x10, 0x11, 0x12, 0x13, 0x14};
     var frame = new UniqueFileIdentifierFrame("owner", bytes);
     Assert.AreEqual(frame.Descriptor.Id, "UFID");
     Assert.AreEqual(frame.Owner, "owner");
     Assert.IsTrue(ComparePayload(frame.Identifier, bytes));
     Assert.AreEqual(frame.Type, FrameType.UniqueFileIdentifier);
 }
        public void ConvertTest2()
        {
            string owner = String.Empty;
            var identifier = new byte[] {0x10, 0x11, 0x12};
            var frame = new UniqueFileIdentifierFrame(owner, identifier);

            RawFrame rawFrame = frame.Convert(TagVersion.Id3V23);
            Assert.AreEqual(rawFrame.Id, "UFID");

            ReadOnlyCollection<byte> payload = rawFrame.Payload;
            var refBytes = new byte[] {0x00, 0x10, 0x11, 0x12};

            Assert.IsTrue(ComparePayload(payload, refBytes));
        }