bool test() { StringBuilder sb; sb.Append("This is a test."); int result = sb.IndexOf("This is a test."); return (result == 0); }
bool test() { StringBuilder sb; sb.Append("That is a test"); int result = sb.IndexOf("is"); return (result == 5); }