public bool PosTest2() { bool retVal = true; const string c_TEST_DESC = "PosTest2: the parameter is empty ... "; const string c_TEST_ID = "P002"; string c_PROPERTYNAME = ""; TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); try { System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME); if (atpa == null) { string errorDesc = "the IndexerNameAttribute ctor error occurred.)"; errorDesc += "\n parameter is empty"; TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("004", "unexpected exception occurs :" + e); retVal = false; } return(retVal); }
public bool PosTest2() { bool retVal = true; const string c_TEST_DESC = "PosTest2: the parameter is empty ... "; const string c_TEST_ID = "P002"; string c_PROPERTYNAME = ""; TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); try { System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME); if (atpa == null) { string errorDesc = "the IndexerNameAttribute ctor error occurred.)"; errorDesc += "\n parameter is empty"; TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("004", "unexpected exception occurs :" + e); retVal = false; } return retVal; }
public bool PosTest1() { bool retVal = true; const string c_TEST_DESC = "PosTest1: Create a new IndexerNameAttribute instance ... "; const string c_TEST_ID = "P001"; string c_PROPERTYNAME = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); try { System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME); if (atpa == null) { string errorDesc = "the IndexerNameAttribute ctor error occurred.)"; errorDesc += "\n parameter is " + c_PROPERTYNAME; TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e); retVal = false; } return(retVal); }
public bool PosTest1() { bool retVal = true; const string c_TEST_DESC = "PosTest1: Create a new IndexerNameAttribute instance ... "; const string c_TEST_ID = "P001"; string c_PROPERTYNAME = TestLibrary.Generator.GetString(-55, false, c_MIN_STRING_LEN, c_MAX_STRING_LEN); TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); try { System.Runtime.CompilerServices.IndexerNameAttribute atpa = new System.Runtime.CompilerServices.IndexerNameAttribute(c_PROPERTYNAME); if (atpa == null) { string errorDesc = "the IndexerNameAttribute ctor error occurred.)"; errorDesc += "\n parameter is " + c_PROPERTYNAME; TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "unexpected exception occurs :" + e); retVal = false; } return retVal; }