public void ShouldNotBeSatisfiedWhenTypeCantBeFound(Mock<TypeNameMatcher<IFoo>> matcher) { matcher.Setup(x => x.GetMatchedType(It.IsAny<string>())).Throws<ArgumentException>(); Assert.False(matcher.Object.IsSatisfiedBy("foo")); }