Преглед изворни кода

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

BDisp пре 1 година
родитељ
комит
f3146a25cd
1 измењених фајлова са 5 додато и 0 уклоњено
  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