예제 #1
0
 public void IsValidTest()
 {
     using var stream = new MemoryStream();
     stream.WriteByte(0x40);
     stream.WriteByte(0x43);
     stream.WriteByte(0x54);
     stream.WriteByte(0x44);
     stream.Position = 0;
     Assert.True(Ctd.IsValid(stream));
 }
예제 #2
0
 public void IsNotValidTest()
 {
     using (var stream = new MemoryStream())
     {
         stream.WriteByte(1);
         stream.WriteByte(2);
         stream.WriteByte(3);
         stream.WriteByte(4);
         stream.Position = 0;
         Assert.False(Ctd.IsValid(stream));
     }
 }