Engines/FlatRedBallXNA/3rd Party Libraries/StringEnum_src/CodeBureau/Tests/StringEnumTests.cs
/// <summary>
/// Create new instance and return enum value from the given string value
/// </summary>
Create new instance and return enum value from the given string value
Create new instance and return enum value from the given string value
[Test]
		public void TestInstanceGetStringValue()
		{
			StringEnum stringEnum = new StringEnum(typeof(EnumWithStrings));
			Assert.AreEqual("Fourth Value", stringEnum.GetStringValue("Lazy"));
			Assert.IsNull(stringEnum.GetStringValue("clearly not there"));
		}
[ Test ] public void TestInstanceGetStringValue ( ) { StringEnum stringEnum = new StringEnum ( typeof ( EnumWithStrings ) ) ; Assert . AreEqual ( " " , stringEnum . GetStringValue ( " " ) ) ; Assert . IsNull ( stringEnum . GetStringValue ( " " ) ) ; }
Create new instance and return enum value from the given string value
Create new instance and return enum value from the given string value
//Expect null as this value doesn't exist