Engines/FlatRedBallXNA/3rd Party Libraries/StringEnum_src/CodeBureau/Tests/StringEnumTests.cs
/// <summary>
/// Test whether the given string is defined using instance methods
/// </summary>
Test whether the given string is defined using instance methods
Test whether the given string is defined using instance methods
[Test]
		public void TestInstanceIsStringDefined()
		{
			StringEnum stringEnum = new StringEnum(typeof(EnumWithStrings));
			Assert.IsFalse(stringEnum.IsStringDefined("Something that's not there"));
			Assert.IsFalse(stringEnum.IsStringDefined("first value"));
			Assert.IsTrue(stringEnum.IsStringDefined("First Value"));
		}
[ Test ] public void TestInstanceIsStringDefined ( ) { StringEnum stringEnum = new StringEnum ( typeof ( EnumWithStrings ) ) ; Assert . IsFalse ( stringEnum . IsStringDefined ( " " ) ) ; Assert . IsFalse ( stringEnum . IsStringDefined ( " " ) ) ; Assert . IsTrue ( stringEnum . IsStringDefined ( " " ) ) ; }
Test whether the given string is defined using instance methods
Test whether the given string is defined using instance methods