Explorar o código

Re-add assertions to ensure it's working running the executable file.

BDisp hai 1 ano
pai
achega
f3146a25cd
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      SelfContained/Program.cs

+ 5 - 0
SelfContained/Program.cs

@@ -21,6 +21,11 @@ public static class Program
             // Only happens if the project has <InvariantGlobalization>true</InvariantGlobalization>
             Debug.Assert (Application.SupportedCultures.Count == 0);
         }
+        else
+        {
+            Debug.Assert (Application.SupportedCultures.Count > 0);
+            Debug.Assert (Equals (CultureInfo.CurrentCulture, Thread.CurrentThread.CurrentUICulture));
+        }
 
         #endregion