public void Test_StringManipulator_IndexOfStringStartIndexInLaterSectionNotFound() { StringManipulator m = new StringManipulator(); m.Append("hello cru"); m.Append("el world"); Assert.AreEqual("hello cruel world".IndexOf("k", 7), m.IndexOf("k", 7)); }
public void Test_StringManipulator_IndexOfStringInSecondSections() { StringManipulator m = new StringManipulator(); m.Append("hello cru"); m.Append("el world"); Assert.AreEqual("hello cruel world".IndexOf("rld"), m.IndexOf("rld")); }
public void Test_StringManipulator_IndexOfStringStartIndex() { StringManipulator m = new StringManipulator(); m.Append("hello cru"); m.Append("el world"); Assert.AreEqual("hello cruel world".IndexOf("l", 3), m.IndexOf("l", 3)); }
public void Test_StringManipulator_IndexOfSingleLetter() { StringManipulator m = new StringManipulator(); m.Append("hello cru"); m.Append("el world"); Assert.AreEqual("hello".IndexOf('l'), m.IndexOf("l")); }