public void WithAttribute_Should_Add_Attribute()
        {
            var attribute = new WithPublicCtorAttribute();
            _Builder.WithAttribute(attribute);

            A.CallTo(() => _MemberInfo.AddAttribute(A<WithPublicCtorAttribute>.That.Matches(a => Equals(a, attribute)))).MustHaveHappened();
        }
Exemplo n.º 2
0
        public void WithAttribute_Should_Add_Attribute()
        {
            var attribute = new WithPublicCtorAttribute();

            _Builder.WithAttribute(attribute);

            A.CallTo(() => _MemberInfo.AddAttribute(A <WithPublicCtorAttribute> .That.Matches(a => Equals(a, attribute)))).MustHaveHappened();
        }