Engines/FlatRedBallXNA/3rd Party Libraries/StringEnum_src/CodeBureau/Tests/StringEnumTests.cs
/// <summary>
/// Try a non-enum type to generate an ArgumentException
/// </summary>
Try a non-enum type to generate an ArgumentException
Try a non - enum type to generate an ArgumentException
[Test]
		[ExpectedException(typeof(ArgumentException), "Supplied type must be an Enum.  Type was System.Decimal")]
		public void TestParseExpectArgumentException()
		{
			StringEnum.Parse(typeof(decimal), "spoof");
		}
[ Test ] [ ExpectedException ( typeof ( ArgumentException ) , " " ) ] public void TestParseExpectArgumentException ( ) { StringEnum . Parse ( typeof ( decimal ) , " " ) ; }
Try a non-enum type to generate an ArgumentException
Try a non - enum type to generate an ArgumentException