public void TestMatchByCase() { var extractor = new KeywordTokenExtractor(new[] { "Matching" }); var token = extractor.ExtractToken("matching()", 0, new Context(ExpressiveOptions.IgnoreCase)); Assert.IsNotNull(token); Assert.AreEqual("matching", token.CurrentToken); }
public void TestNoMatchByCase() { var extractor = new KeywordTokenExtractor(new[] { "Matching" }); Assert.IsNull(extractor.ExtractToken("matching()", 0, new Context(ExpressiveOptions.None))); }
public void TestConstructingWithNull() { _ = new KeywordTokenExtractor(null); }