public void ShouldNotMatchTypeWithoutMatchingAlias() { var aliasMatcher = new AliasMatcher(new List<Type> { typeof(Foo) }); Assert.Throws<ArgumentException>(() => aliasMatcher.GetMatchedType("baz")); }