C# Class Shouldly.ShouldlyExtensionMethods.ShouldHaveEnumExtensions

Datei anzeigen Open project: shouldly/shouldly

Public Methods

Method Description
ShouldHaveFlag ( this actual, Enum expectedFlag ) : void
ShouldHaveFlag ( this actual, Enum expectedFlag, [ customMessage ) : void
ShouldHaveFlag ( this actual, Enum expectedFlag, string customMessage ) : void
ShouldNotHaveFlag ( this actual, Enum expectedFlag ) : void
ShouldNotHaveFlag ( this actual, Enum expectedFlag, [ customMessage ) : void
ShouldNotHaveFlag ( this actual, Enum expectedFlag, string customMessage ) : void

Private Methods

Method Description
CheckEnumHasFlagAttribute ( Enum actual ) : void
HasFlag ( this enumeration, Enum value ) : bool

Method Details

ShouldHaveFlag() public static method

public static ShouldHaveFlag ( this actual, Enum expectedFlag ) : void
actual this
expectedFlag System.Enum
return void

ShouldHaveFlag() public static method

public static ShouldHaveFlag ( this actual, Enum expectedFlag, [ customMessage ) : void
actual this
expectedFlag System.Enum
customMessage [
return void

ShouldHaveFlag() public static method

public static ShouldHaveFlag ( this actual, Enum expectedFlag, string customMessage ) : void
actual this
expectedFlag System.Enum
customMessage string
return void

ShouldNotHaveFlag() public static method

public static ShouldNotHaveFlag ( this actual, Enum expectedFlag ) : void
actual this
expectedFlag System.Enum
return void

ShouldNotHaveFlag() public static method

public static ShouldNotHaveFlag ( this actual, Enum expectedFlag, [ customMessage ) : void
actual this
expectedFlag System.Enum
customMessage [
return void

ShouldNotHaveFlag() public static method

public static ShouldNotHaveFlag ( this actual, Enum expectedFlag, string customMessage ) : void
actual this
expectedFlag Enum
customMessage string
return void