Exemplo n.º 1
0
        public void Can_Execute_Action_Within_StateAction()
        {
            Action<string> act = x =>
            {
                Assert.Pass("state is " + x);
            };

            var stateAction = new XStateAction<string>("fly", act);
            stateAction.Execute();
        }
Exemplo n.º 2
0
 public void Can_create_StateAction_without_Action()
 {
     var sa = new XStateAction<string>("", null);
     Assert.IsNotNull(sa);
 }
Exemplo n.º 3
0
 public void Can_create_StateAction_with_State()
 {
     var sa = new XStateAction<string>("flare", null);
     Assert.AreEqual("flare", sa.State);
 }
Exemplo n.º 4
0
 public void Cannot_create_StateAction_without_NextState()
 {
     var sa = new XStateAction<string>(null, x => { });
     Assert.AreEqual(sa, null);
 }