public void StringExt_ShouldCorrectlyCompareHostFileStrings() { // ensure thread culture setup to use en-US since that is // how the test is written. CultureInfo ci = CultureInfo.CreateSpecificCulture("en-US"); System.Threading.Thread.CurrentThread.CurrentCulture = ci; System.Threading.Thread.CurrentThread.CurrentUICulture = ci; Assert.IsTrue(StringExtensions.AreHostFileStringEqual("abc", "ABC")); Assert.IsTrue(StringExtensions.AreHostFileStringEqual("abc", "AbC")); Assert.IsFalse(StringExtensions.AreHostFileStringEqual("abd", "abc")); var s = string.Intern("__interned_string"); Assert.IsTrue(StringExtensions.AreHostFileStringEqual(s, s)); // END FUNCTION }