예제 #1
0
        public void EmptyPatternReturnsFalse()
        {
            var events = GetBasicCheckoutEvents();
            var script = "";

            Assert.IsFalse(ChronEx.IsMatch(script, events));
        }
예제 #2
0
        public void SimpleSelectorSequenceMatch()
        {
            var events = GetBasicCheckoutEvents();
            var script =
                @"ItemPage.Item.AddToCart.Clicked
ItemPage.ShoppingCartLink.Clicked";

            Assert.IsTrue(ChronEx.IsMatch(script, events));
        }
예제 #3
0
        public void SimpleSelectorSequenceDoesNotMatch()
        {
            var events = GetBasicCheckoutEvents();
            var script =
                @"ItemPage.Item.AddToCart.Clicked
Catalog.Render
ItemPage.ShoppingCartLink.Clicked";

            Assert.IsFalse(ChronEx.IsMatch(script, events));
        }