public void CreateTest()
        {
            var popFrame = new PopularimeterFrame();

            Assert.AreEqual(popFrame.Descriptor.Id, "POPM");
            Assert.IsNotNull(popFrame.Email);
            Assert.AreEqual(popFrame.PlayCounter, 0);
            Assert.AreEqual(popFrame.Rating, 0);
        }
        public void ConvertTest4()
        {
            var popFrame = new PopularimeterFrame("ABC", 0xF, 0x7FFFFFFF);

            RawFrame rawFrame = popFrame.Convert(TagVersion.Id3V23);

            Assert.AreEqual(rawFrame.Id, "POPM");
            ReadOnlyCollection<byte> payload = rawFrame.Payload;
            var refBytes = new byte[] {0x41, 0x42, 0x43, 0x00, 0x0F, 0x7F, 0xFF, 0xFF, 0xFF};

            Assert.IsTrue(ComparePayload(refBytes, payload));
        }
        public void CreateTest2()
        {
            const string mail = "Mail";
            const int playCounter = 3;
            const int rating = 0xFF;

            var popFrame = new PopularimeterFrame(mail, rating, playCounter);

            Assert.AreEqual(popFrame.Descriptor.Id, "POPM");
            Assert.AreEqual(popFrame.Email, mail);
            Assert.AreEqual(popFrame.PlayCounter, playCounter);
            Assert.AreEqual(popFrame.Rating, rating);
        }