Fluent Assertions Documentation
FluentAssertions.Equivalency Namespace / SubjectInfoExtensions Class / WhichSetterDoesNotHave Method
The subject info being checked.
The access modifier that the subject info setter should not have.
In This Topic
    WhichSetterDoesNotHave Method
    In This Topic
    Checks if the subject info setter does not have the given access modifier.
    Syntax
    [Extension()]
    public static bool WhichSetterDoesNotHave( 
       IMemberInfo memberInfo,
       CSharpAccessModifier accessModifier
    )

    Parameters

    memberInfo
    The subject info being checked.
    accessModifier
    The access modifier that the subject info setter should not have.

    Return Value

    True if the subject info setter does not have the given access modifier, false otherwise.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also