Engines/FlatRedBallXNA/3rd Party Libraries/StringEnum_src/CodeBureau/Tests/StringEnumTests.cs
/// <summary>
/// Parse a string value to retrieve an enum value
/// </summary>
Parse a string value to retrieve an enum value
Parse a string value to retrieve an enum value
[Test]
		public void TestStaticParse()
		{
			Assert.IsNull(StringEnum.Parse(typeof(EnumPartialStrings), "jacK be nImbLe"));
			Assert.AreEqual(EnumPartialStrings.Jack, StringEnum.Parse(typeof(EnumPartialStrings), "Jack be nimble"));
			Assert.AreEqual(EnumPartialStrings.Jack, StringEnum.Parse(typeof(EnumPartialStrings), "jacK be nImbLe", true));
		}
[ Test ] public void TestStaticParse ( ) { Assert . IsNull ( StringEnum . Parse ( typeof ( EnumPartialStrings ) , " " ) ) ; Assert . AreEqual ( EnumPartialStrings . Jack , StringEnum . Parse ( typeof ( EnumPartialStrings ) , " " ) ) ; Assert . AreEqual ( EnumPartialStrings . Jack , StringEnum . Parse ( typeof ( EnumPartialStrings ) , " " , true ) ) ; }
Parse a string value to retrieve an enum value
Parse a string value to retrieve an enum value
//Case Sensitive (not found) //Case Sensitive (found) //Case insensitive (found)