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)); }
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)); } }