Exemplo n.º 1
0
        public void UIntCanBeReaded(uint value)
        {
            // Arrange
            var data = BitConverter.GetBytes(value);

            // Act
            var stream = new DeserializationStream(data);
            var result = stream.ReadUInt();

            // Assert
            result.Should().Be(value);
            stream.Offset.Should().Be(sizeof(uint));
        }
Exemplo n.º 2
0
 protected override uint DeserializeInternal(DeserializationStream stream, Type sourceType)
 {
     return(stream.ReadUInt());
 }