Пример #1
0
        public void ParseHeader_ThrowsIfMissingMagicNumber()
        {
            var buf = new byte[16] {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
            };

            Assert.Throws <InvalidDataException>(() => RomParser.ParseHeader(buf));
        }
Пример #2
0
        public void ParseHeader_ThrowsIfInsufficientData()
        {
            var buf = new byte[2];

            Assert.Throws <InvalidDataException>(() => RomParser.ParseHeader(buf));
        }