public void TestMatch() { StringMatch stringMatch = new StringMatch("32r4ABCojfDE0owejfoweurFoewrr8u", "ABC*DE*F"); MyMatch myMatch = stringMatch.SimpleMatch("A.C", 0); Assert.IsTrue(myMatch.matched); Assert.AreEqual(4, myMatch.start); Assert.AreEqual(6, myMatch.end); myMatch = stringMatch.Match(); Assert.IsTrue(myMatch.matched); Assert.AreEqual(4, myMatch.start); Assert.AreEqual(23, myMatch.end); stringMatch.Pattern = "ABC*DE*FG"; myMatch = stringMatch.Match(); Assert.IsFalse(myMatch.matched); }