public void BooleanCanBeReaded(bool value) { // Arrange var data = BitConverter.GetBytes(value); // Act var stream = new DeserializationStream(data); var result = stream.ReadBool(); // Assert result.Should().Be(value); stream.Offset.Should().Be(sizeof(bool)); }
protected override bool DeserializeInternal(DeserializationStream stream, Type sourceType) { return(stream.ReadBool()); }