コード例 #1
0
ファイル: BehaviorChainTester.cs プロジェクト: DRHouk/fubumvc
        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");
        }
コード例 #2
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");
 }
コード例 #3
0
 public void first_call_description_return_empty_if_first_call_is_null()
 {
     var chain = new BehaviorChain();
     chain.FirstCallDescription().ShouldEqual("");
 }
コード例 #4
0
ファイル: BehaviorChainTester.cs プロジェクト: DRHouk/fubumvc
        public void first_call_description_return_empty_if_first_call_is_null()
        {
            var chain = new BehaviorChain();

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