public void GetEncodedSize_ThrowsException_WhenInputSizeIsNegativeTest(int inputSize) { // arrange // act Action act = () => Sut.GetEncodedSize(inputSize); // assert act.Should().Throw <ArgumentOutOfRangeException>(); }
public void GetEncodedSizeTest(int inputSize, int expectedOutput) { // arrange Span <byte> input = new byte[inputSize]; // act var result = Sut.GetEncodedSize(input); // assert result.Should().Be(expectedOutput); }