public void EmptyPatternReturnsFalse() { var events = GetBasicCheckoutEvents(); var script = ""; Assert.IsFalse(ChronEx.IsMatch(script, events)); }
public void SimpleSelectorSequenceMatch() { var events = GetBasicCheckoutEvents(); var script = @"ItemPage.Item.AddToCart.Clicked ItemPage.ShoppingCartLink.Clicked"; Assert.IsTrue(ChronEx.IsMatch(script, events)); }
public void SimpleSelectorSequenceDoesNotMatch() { var events = GetBasicCheckoutEvents(); var script = @"ItemPage.Item.AddToCart.Clicked Catalog.Render ItemPage.ShoppingCartLink.Clicked"; Assert.IsFalse(ChronEx.IsMatch(script, events)); }