public void AfterIndexOfNegative(string input, string value, Type expectedException) { Assert.Throws(expectedException, () => StringExtensions.AfterIndexOf(input, value)); }
public void AfterIndexOfPositive(string input, string value, int startIndex, int expectedResult) { var actualResult = StringExtensions.AfterIndexOf(input, value, startIndex); actualResult.Should().Be(expectedResult); }
public void AfterIndexOfNegative(string input, string value, int startIndex, StringComparison stringComparison, Type expectedException) { Assert.Throws(expectedException, () => StringExtensions.AfterIndexOf(input, value, startIndex, stringComparison)); }