EnumExtensionTests GetValues Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void GetValues()
Examples

[Test]
public void GetValues()
{
    Array enumValues = TestEnum.SomeValue.GetEnumValues();
    Assert.AreEqual(2, enumValues.Length);
    Assert.AreEqual(TestEnum.SomeValue, enumValues.GetValue(0));
    Assert.AreEqual(TestEnum.AnotherValue, enumValues.GetValue(1));
}
See Also