瀏覽代碼

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