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

ShouldThrowIfNoTypeMatcherAreSatisfied() private method

private ShouldThrowIfNoTypeMatcherAreSatisfied ( string commandArgument, [ typeNameMatcher, [ aliasMatcher, CommandDispatcher commandDispatcher ) : void
commandArgument string
typeNameMatcher [
aliasMatcher [
commandDispatcher CommandDispatcher
return void
        public void ShouldThrowIfNoTypeMatcherAreSatisfied(string commandArgument,
			[Frozen]Mock<ITypeNameMatcher> typeNameMatcher,
			[Frozen]Mock<IAliasMatcher> aliasMatcher,
			CommandDispatcher commandDispatcher)
        {
            typeNameMatcher.Setup(x => x.IsSatisfiedBy(It.IsAny<string>())).Returns(false);
            aliasMatcher.Setup(x => x.IsSatisfiedBy(It.IsAny<string>())).Returns(false);

            Assert.Throws<DispatchException>(() => commandDispatcher.Dispatch(new string[] { commandArgument }));
        }