Пример #1
0
        public void Basic_Function_Test()
        {
            var eventRun = false;

            //This is what I want, need to make it work now...
            AppEventsClient.New("testevent1").When("page1", 5).Do((r) => eventRun = true);

            //Clear the store
            AppEventsClient.Current.LoadStore(new EventStore());
            AppEventsClient.Current.Fire("page1");
            AppEventsClient.Current.Fire("page1");
            AppEventsClient.Current.Fire("page1");
            AppEventsClient.Current.Fire("page1");

            Assert.IsFalse(eventRun);
            //This 1 should do the action
            AppEventsClient.Current.Fire("page1");
            Assert.IsTrue(eventRun);
        }
Пример #2
0
 public void Full_Test()
 {
     //This is what I want, need to make it work now...
     AppEventsClient.New("testevent1").When("page1", 5).And("page2", 2).AndNot("error").Do((r) => EventFired(r));
 }