Author: alanmc
Date: 2007-01-13 18:28:00 -0500 (Sat, 13 Jan 2007)
New Revision: 70969

Modified:
   trunk/Mono.Xna/tests/Microsoft.Xna.Framework/Vector3Tests.cs
Log:
Example of how to test the coding of ToString method's correctly

Modified: trunk/Mono.Xna/tests/Microsoft.Xna.Framework/Vector3Tests.cs
===================================================================
--- trunk/Mono.Xna/tests/Microsoft.Xna.Framework/Vector3Tests.cs        
2007-01-13 22:48:39 UTC (rev 70968)
+++ trunk/Mono.Xna/tests/Microsoft.Xna.Framework/Vector3Tests.cs        
2007-01-13 23:28:00 UTC (rev 70969)
@@ -25,7 +25,11 @@
         [Test]
         public void ToStringTest()
         {
+            // First check "regular english" locale
+            System.Threading.Thread.CurrentThread.CurrentCulture = 
CultureInfo.GetCultureInfo("en-IE");
             Assert.AreEqual("{X:-124 Y:352.234 Z:123.123}", c.ToString());
+
+            // Then check crazy german locale. They use comma's
             System.Threading.Thread.CurrentThread.CurrentCulture = 
CultureInfo.GetCultureInfo("de-DE");
             Assert.AreEqual("{X:-124 Y:352,234 Z:123,123}", c.ToString());
         }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to