Engines/FlatRedBallXNA/3rd Party Libraries/StringEnum_src/CodeBureau/Tests/StringEnumTests.cs
/// <summary>
/// Tests GetStringValue caching (Static implementation)
/// </summary>
Tests GetStringValue caching (Static implementation)
Tests GetStringValue caching ( Static implementation )
[Test]
		public void TestStaticGetStringValueCaching() 
		{
			Assert.AreEqual("Third Value", StringEnum.GetStringValue(EnumWithStrings.Fox)) ;		
			Assert.AreEqual("3rd Value", StringEnum.GetStringValue(IdenticalEnumWithDifferentStrings.Fox)) ;		
			Assert.AreEqual("Third Value", StringEnum.GetStringValue(EnumWithStrings.Fox)) ;		
			Assert.AreEqual("3rd Value", StringEnum.GetStringValue(IdenticalEnumWithDifferentStrings.Fox)) ;		
		}
[ Test ] public void TestStaticGetStringValueCaching ( ) { Assert . AreEqual ( " " , StringEnum . GetStringValue ( EnumWithStrings . Fox ) ) ; Assert . AreEqual ( " " , StringEnum . GetStringValue ( IdenticalEnumWithDifferentStrings . Fox ) ) ; Assert . AreEqual ( " " , StringEnum . GetStringValue ( EnumWithStrings . Fox ) ) ; Assert . AreEqual ( " " , StringEnum . GetStringValue ( IdenticalEnumWithDifferentStrings . Fox ) ) ; }
Tests GetStringValue caching (Static implementation)
Tests GetStringValue caching ( Static implementation )
//Expect to retrieve a string value (and cache this value) //Expect to retrieve a different value (as this is from a different enum) //Expect to retrieve both values again (cached)