Exemplo n.º 1
0
        public void When_reading_uint_should_read_correct_value(string dataToParse, params uint[] expectedValues)
        {
            // Arrange
            _parser = CreateSubject(dataToParse);

            // Act
            foreach (uint expectedValue in expectedValues)
            {
                uint actual = _parser.ReadUInt32();

                // Assert
                actual.Should().Be(expectedValue);
            }

            _parser.AtEndOfStream().Should().BeTrue();
        }