AppHarbor.Tests.CommandDispatcherTest.ShouldDispatchHelpWhenNoCommand C# (CSharp) Method

ShouldDispatchHelpWhenNoCommand() private method

private ShouldDispatchHelpWhenNoCommand ( [ typeNameMatcher, [ kernel, Mock command, CommandDispatcher commandDispatcher ) : void
typeNameMatcher [
kernel [
command Mock
commandDispatcher CommandDispatcher
return void
        public void ShouldDispatchHelpWhenNoCommand(
			[Frozen]Mock<ITypeNameMatcher> typeNameMatcher,
			[Frozen]Mock<IKernel> kernel,
			Mock<FooCommand> command,
			CommandDispatcher commandDispatcher)
        {
            var helpArgument = "help";
            typeNameMatcher.Setup(x => x.IsSatisfiedBy(helpArgument)).Returns(true);
            typeNameMatcher.Setup(x => x.GetMatchedType(helpArgument)).Returns(FooCommandType);
            kernel.Setup(x => x.Resolve(FooCommandType)).Returns(command.Object);

            commandDispatcher.Dispatch(new string[0]);

            typeNameMatcher.VerifyAll();
        }