Beispiel #1
0
        public void return_description_if_first_call_is_not_null()
        {
            var chain = new BehaviorChain();
            var type  = typeof(ControllerTarget);

            chain.AddToEnd(new ActionCall(type, type.GetMethod("OneInZeroOut")));
            chain.FirstCallDescription().ShouldEqual("ControllerTarget.OneInZeroOut(Model1 input) : void");
        }
 public void return_description_if_first_call_is_not_null()
 {
     var chain = new BehaviorChain();
     var type = typeof (ControllerTarget);
     chain.AddToEnd(new ActionCall(type, type.GetMethod("OneInZeroOut")));
     chain.FirstCallDescription().ShouldEqual("ControllerTarget.OneInZeroOut(Model1 input) : void");
 }
 public void first_call_description_return_empty_if_first_call_is_null()
 {
     var chain = new BehaviorChain();
     chain.FirstCallDescription().ShouldEqual("");
 }
Beispiel #4
0
        public void first_call_description_return_empty_if_first_call_is_null()
        {
            var chain = new BehaviorChain();

            chain.FirstCallDescription().ShouldEqual("");
        }