Exemple #1
0
 public Main()
 {
     InitializeComponent();
     patternEngine   = new PatternEngine();
     optTest.Checked = true;
     getPattern();
 }
Exemple #2
0
        public void PatternEngineUseAsLibrary()
        {
            var engine = new PatternEngine();

            engine.TryMatch("/category", "/category/cat1/product/prod1", out var match, out var why).Should().BeTrue();
            match.Should().NotBeNull();
            match !.PathSuffix.Should().Be("/cat1/product/prod1");
            why.Should().BeNull();
        }