public void GetDecodedSize_ThrowsException_WhenInputSizeIsNegativeTest(int inputSize) { // arrange // act Action act = () => Sut.GetDecodedSize(inputSize); // assert act.Should().Throw <ArgumentOutOfRangeException>(); }
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); }