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