public void ShouldThrowIfInitializedWithUnnasignableType() { var exception = Assert.Throws<ArgumentException>(() => new TypeNameMatcher<IFoo>(new List<Type> { typeof(string) })); }