public void TestTypeTester() { Obfuscar.TypeKey key = new Obfuscar.TypeKey ("anything", "ns", "name"); Obfuscar.IPredicate<Obfuscar.TypeKey> tester; tester = new Obfuscar.TypeTester ("ns.name"); Assert.IsTrue (tester.Test (key), "Tester should handle strings."); tester = new Obfuscar.TypeTester ("ns.n*e"); Assert.IsTrue (tester.Test (key), "Tester should handle wildcards."); tester = new Obfuscar.TypeTester ("^ns\\.n.*e"); Assert.IsTrue (tester.Test (key), "Tester should handle regular expressions."); }
public void TestTypeTester() { Obfuscar.TypeKey key = new Obfuscar.TypeKey("anything", "ns", "name"); Obfuscar.IPredicate <Obfuscar.TypeKey> tester; tester = new Obfuscar.TypeTester("ns.name"); Assert.True(tester.Test(key), "Tester should handle strings."); tester = new Obfuscar.TypeTester("ns.n*e"); Assert.True(tester.Test(key), "Tester should handle wildcards."); tester = new Obfuscar.TypeTester("^ns\\.n.*e"); Assert.True(tester.Test(key), "Tester should handle regular expressions."); }