Browse Source

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

BDisp 1 year ago
parent
commit
f3146a25cd
1 changed files with 5 additions and 0 deletions
  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