public void GetLastIndexOfChar_NullString_ThrowsException() { // Act Assert.Throws <ArgumentNullException>(() => WhileMethods.GetLastIndexOfChar(null, 'a')); }
public int GetLastIndexOfCharStartIndexCount_NonEmptyString_ReturnsPosition(string str, char value, int startIndex, int count) { // Act return(WhileMethods.GetLastIndexOfChar(str, value, startIndex, count)); }
public void GetLastIndexOfCharStartIndexCount_StartIndexGreaterStringLength_ThrowsException() { // Act Assert.Throws <ArgumentOutOfRangeException>(() => WhileMethods.GetLastIndexOfChar(string.Empty, 'a', 1, 0)); }
public void GetLastIndexOfCharStartIndexCount_CountLessZero_ThrowsException() { // Act Assert.Throws <ArgumentOutOfRangeException>(() => WhileMethods.GetLastIndexOfChar(string.Empty, 'a', 0, -1)); }
public int GetLastIndexOfChar_NonEmptyString_ReturnsPosition(string str, char value) { // Act return(WhileMethods.GetLastIndexOfChar(str, value)); }