public void has_input() { var chain = new BehaviorChain(); chain.HasInput().ShouldBeFalse(); chain.Append(ActionCall.For<ControllerTarget>(x => x.ZeroInOneOut())); chain.HasInput().ShouldBeFalse(); chain = new BehaviorChain(); chain.Append(ActionCall.For<ControllerTarget>(x => x.OneInOneOut(null))); chain.HasInput().ShouldBeTrue(); }
public void has_input() { var chain = new BehaviorChain(); chain.HasInput().ShouldBeFalse(); chain.AddToEnd(ActionCall.For <ControllerTarget>(x => x.ZeroInOneOut())); chain.HasInput().ShouldBeFalse(); chain = new BehaviorChain(); chain.AddToEnd(ActionCall.For <ControllerTarget>(x => x.OneInOneOut(null))); chain.HasInput().ShouldBeTrue(); }