public void testCutThruLast() { string str = " Oats"; StringTheory theory = new StringTheory("Mares Eat Oats Mares Eat Oats"); string str2 = theory.CutThruLast("Eat"); Assert.True(str.Equals(theory.ToString()), "The resulting string is wrong."); Assert.True(str2.Equals("Mares Eat Oats Mares Eat"), "The emitted string is wrong."); theory.PasteOver("Mares Eat Oats"); string str3 = theory.CopyAfter("XYZ"); Assert.True("Mares Eat Oats".Equals(theory.ToString()), "[bogus] The resulting string is wrong."); Assert.True(str3.Length < 1, "[bogus] The Cut string is wrong."); }