Exemple #1
0
        public void FindNoTagsWhenNotEnoughData()
        {
            var raw = new byte[] { 73, 68, 50, 0 };

            using (var strm = new MemoryStream(raw))
            {
                Assert.IsFalse(ApeV2.ReadTags(strm, out var ape));
                Assert.IsNull(ape);
            }
        }
Exemple #2
0
        public void FindNoTagsInEmptyFile()
        {
            var raw = new byte[] { };

            using (var strm = new MemoryStream(raw))
            {
                Assert.IsFalse(ApeV2.ReadTags(strm, out var ape));
                Assert.IsNull(ape);
            }
        }
Exemple #3
0
        public void FindNoTagsWhenNoHeader()
        {
            var raw = new byte[128];

            Array.Copy(new byte[] { 73, 68, 51 }, 0, raw, 0, 3);

            using (var strm = new MemoryStream(raw))
            {
                Assert.IsFalse(ApeV2.ReadTags(strm, out var ape));
                Assert.IsNull(ape);
            }
        }