public static void Main() { StringComparerTest test = new StringComparerTest(); test.CompareCurrentCultureStringComparer(); test.CompareCurrentCultureInsensitiveStringComparer(); }
public bool PosTest1() { bool retVal = true; TestLibrary.TestFramework.BeginScenario("PosTest1:Verify Method GetType. "); try { StringComparerTest sc1 = new StringComparerTest(); if (sc1.GetType() != typeof(StringComparerTest)) { TestLibrary.TestFramework.LogError("001.1", "Verify Method GetType Err."); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); TestLibrary.TestFramework.LogInformation(e.StackTrace); retVal = false; } return(retVal); }
public bool PosTest1() { bool retVal = true; TestLibrary.TestFramework.BeginScenario("PosTest1:Verify Method GetType. "); try { StringComparerTest sc1 = new StringComparerTest(); if (sc1.GetType() != typeof(StringComparerTest)) { TestLibrary.TestFramework.LogError("001.1", "Verify Method GetType Err."); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e); TestLibrary.TestFramework.LogInformation(e.StackTrace); retVal = false; } return retVal; }