Beispiel #1
0
        public void IsNotValidIfMagicCodeIsNotRecognizedTest()
        {
            var data = new byte[0x10];

            data[0] = 6;
            using (var stream = new MemoryStream(data))
                Assert.False(SaveKhRecom.IsValid(stream));
        }
Beispiel #2
0
        public void IsNotValidIfLengthIsNotEnoughTest()
        {
            var data = new byte[0xf];

            data[0] = 7;
            using (var stream = new MemoryStream(data))
                Assert.False(SaveKhRecom.IsValid(stream));
        }
Beispiel #3
0
        public void IsValidTest()
        {
            var data = new byte[0x10];

            data[0] = 7;
            using (var stream = new MemoryStream(data))
                Assert.True(SaveKhRecom.IsValid(stream));
        }