1
Vote

IndexOutOfRangeException: 'String' class, 'Any' method

description

when both the 'word' and 'match' values contains only whitespaces, Any() method throws an IndexOutOfRangeException
 
[Test]
public void testMethod()
{
 string val = "  ";
 val.Any("  ");
}

comments