public void Matches_returns_false_for_a_class_decorated_with_a_different_attribute() { var sut = new TypeIsDecoratedWithAttributeSpecification(typeof(DesiredAttributeAttribute)); Assert.That(() => sut.Matches(typeof(DecoratedWithWrongAttribute)), Is.False); }
public void Matches_returns_true_for_a_class_decorated_with_the_attribute() { var sut = new TypeIsDecoratedWithAttributeSpecification(typeof(DesiredAttributeAttribute)); Assert.That(() => sut.Matches(typeof(DecoratedWithRightAttribute)), Is.True); }