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