Exemplo n.º 1
0
        public void GetDecodedSize_ThrowsException_WhenInputSizeIsNegativeTest(int inputSize)
        {
            // arrange

            // act
            Action act = () => Sut.GetDecodedSize(inputSize);

            // assert
            act.Should().Throw <ArgumentOutOfRangeException>();
        }
Exemplo n.º 2
0
        public void GetDecodedSizeTest(int inputSize, int expectedOutput)
        {
            // arrange
            Span <char> input = new char[inputSize];

            // act
            var result = Sut.GetDecodedSize(input);

            // assert
            result.Should().Be(expectedOutput);
        }