PexAssume.EnumIsDefined<TEnum>(TEnum) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.