public void T03_Null_Stream_IO() { using (var stream = new MemoryStream()) { var x = new X690.Null(); x.Write(stream); TT.Peek(x, stream); stream.Position = 0; var y = X690.Read(stream); Assert.Equal(x, y); } }
public void T04_Null_Buffered_IO() { var buffer = new byte[3]; var x = new X690.Null(); var length = x.Write(buffer, 0); TT.Peek(x, buffer, length); var y = X690.Read(buffer, 0, length); Assert.Equal(x, y); Assert.Equal(y.Header.MessageLength, length); }