コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }