public void testSplitToStrings() { StringTheory theory = new StringTheory("mares*eat*oats"); string[] strArray = theory.SplitToStrings('*'); Assert.AreEqual(3, strArray.Length, "1) Wrong number of strings returned"); Assert.AreEqual("mares", strArray[0], "1) Returned list item[0] doesn't match."); Assert.AreEqual("eat", strArray[1], "1) Returned list item[1] doesn't match."); Assert.AreEqual("oats", strArray[2], "1) Returned list item[2] doesn't match."); theory.PasteOver("maresFOOBAReatFOOBARoats"); strArray = theory.SplitToStrings("FOOBAR"); Assert.AreEqual(3, strArray.Length, "2) Wrong number of strings returned"); Assert.AreEqual("mares", strArray[0], "2) Returned list item[0] doesn't match."); Assert.AreEqual("eat", strArray[1], "2) Returned list item[1] doesn't match."); Assert.AreEqual("oats", strArray[2], "2) Returned list item[2] doesn't match."); }