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