public void Matches_returns_false_for_an_closed_generic_type() { var sut = new IsOpenGenericTypeSpecification(); Assert.That(() => sut.Matches(typeof(GenericClass <string>)), Is.False); }
public void Matches_returns_false_for_a_non_generic_type() { var sut = new IsOpenGenericTypeSpecification(); Assert.That(() => sut.Matches(typeof(NonGenericClass)), Is.False); }
public void Matches_returns_true_for_an_open_generic_type() { var sut = new IsOpenGenericTypeSpecification(); Assert.That(() => sut.Matches(typeof(GenericClass <>)), Is.True); }