public bool PosTest1() { bool retVal = true; TestICollectionSyncRoot test = new TestICollectionSyncRoot(); TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of SyncRoot property is itself"); try { if (test.SyncRoot != test) { TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); retVal = false; } return retVal; }
public bool PosTest1() { bool retVal = true; TestICollectionSyncRoot test = new TestICollectionSyncRoot(); TestLibrary.TestFramework.BeginScenario("PosTest1: Verify the value of SyncRoot property is itself"); try { if (test.SyncRoot != test) { TestLibrary.TestFramework.LogError("001", "The result is not the value as expected"); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "Unexpected exception: " + e); retVal = false; } return(retVal); }