Engines/FlatRedBallXNA/3rd Party Libraries/StringEnum_src/CodeBureau/Tests/StringEnumTests.cs
/// <summary>
/// Test retrieving an array of string values from a supplied enum
/// </summary>
Test retrieving an array of string values from a supplied enum
Test retrieving an array of string values from a supplied enum
[Test]
		public void TestInstanceGetStringValues()
		{
			StringEnum stringEnum = new StringEnum(typeof(EnumWithoutStrings));
			Assert.AreEqual(0, stringEnum.GetStringValues().Length);
			stringEnum = new StringEnum(typeof(EnumPartialStrings));
			Assert.AreEqual(1, stringEnum.GetStringValues().Length);
			Assert.AreEqual("Jack be nimble", stringEnum.GetStringValues().GetValue(0).ToString());
		}
[ Test ] public void TestInstanceGetStringValues ( ) { StringEnum stringEnum = new StringEnum ( typeof ( EnumWithoutStrings ) ) ; Assert . AreEqual ( 0 , stringEnum . GetStringValues ( ) . Length ) ; stringEnum = new StringEnum ( typeof ( EnumPartialStrings ) ) ; Assert . AreEqual ( 1 , stringEnum . GetStringValues ( ) . Length ) ; Assert . AreEqual ( " " , stringEnum . GetStringValues ( ) . GetValue ( 0 ) . ToString ( ) ) ; }
Test retrieving an array of string values from a supplied enum
Test retrieving an array of string values from a supplied enum