예제 #1
0
        public void SetUp()
        {
            SerilogConfig.Init();

            matcher = new TokenMatcher();
            parser  = new TokenParser();
        }
예제 #2
0
        public void TestTokenMatcherCoCa()
        {
            var template = ReadTemplate("whois.co.ca");
            var input    = ReadData("available.co.ca");

            var matcher = new TokenMatcher();

            matcher.RegisterTemplate(template);

            var match = matcher.Match(input);

            Assert.AreEqual(match.BestMatch.First("DomainName"), "u34jedzcq.co.ca");
            Assert.AreEqual(match.BestMatch.First("Status"), "NotFound");
        }
예제 #3
0
 public void SetUp()
 {
     matcher = new TokenMatcher();
 }