示例#1
0
        public void OffsetCanBeChanged()
        {
            // Arrange
            var       data     = new byte[64];
            const int newIndex = 2;

            // Act
            var stream = new DeserializationStream(data);

            stream.SetOffset(newIndex);

            // Assert
            stream.Offset.Should().Be(newIndex);
        }