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();
        }
예제 #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();
        }