Partager via


PexAssume.EnumIsDefined<TEnum>(TEnum) Method

Definition

The test fails if the value is not defined in the specified enumeration.

public:
generic <typename TEnum>
 where TEnum : value class static void EnumIsDefined(TEnum value);
public static void EnumIsDefined<TEnum> (TEnum value) where TEnum : struct;
static member EnumIsDefined : 'Enum -> unit (requires 'Enum : struct)
Public Shared Sub EnumIsDefined(Of TEnum As Structure) (value As TEnum)

Type Parameters

TEnum

The enumeration type.

Parameters

value
TEnum

The value to be tested.

Exceptions

If value is not a member of the enumeration.

Applies to