Exemplo n.º 1
0
 public void AfterIndexOfNegative(string input, string value, Type expectedException)
 {
     Assert.Throws(expectedException, () => StringExtensions.AfterIndexOf(input, value));
 }
Exemplo n.º 2
0
        public void AfterIndexOfPositive(string input, string value, int startIndex, int expectedResult)
        {
            var actualResult = StringExtensions.AfterIndexOf(input, value, startIndex);

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