public void Clear() { var rec = new SubGridCellPassDataMDPEntryRecord(1, 2); rec.Clear(); rec.Should().BeEquivalentTo(SubGridCellPassDataMDPEntryRecord.NullValue); }
public void BinaryReaderWriter() { var instance = new SubGridCellPassDataMDPEntryRecord(1, 2); // Test using standard Read()/Write() var writer = new BinaryWriter(new MemoryStream(Consts.TREX_DEFAULT_MEMORY_STREAM_CAPACITY_ON_CREATION)); instance.Write(writer); (writer.BaseStream as MemoryStream).Position = 0; var instance2 = new SubGridCellPassDataMDPEntryRecord(); instance2.Read(new BinaryReader(writer.BaseStream as MemoryStream)); instance.Should().BeEquivalentTo(instance2); }