public void Given_MemberInfo_When_ExistsCustomAttribute_Invoked_Then_It_Should_Return_Result(string methodName, bool expected)
        {
            var member = typeof(FakeClass).GetMember(methodName, BindingFlags.Public | BindingFlags.Instance).First();

            var result = MemberInfoExtensions.ExistsCustomAttribute <FakeMethodAttribute>(member);

            result.Should().Be(expected);
        }
        public void Given_Null_When_ExistsCustomAttribute_Invoked_Then_It_Should_Throw_Exception()
        {
            Action action = () => MemberInfoExtensions.ExistsCustomAttribute <Attribute>(null);

            action.Should().Throw <ArgumentNullException>();
        }