Sfoglia il codice sorgente

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

BDisp 1 anno fa
parent
commit
f3146a25cd
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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