public bool PosTest1() { bool retVal = true; TestClassIFormatable tIF = new TestClassIFormatable(); TestClassIFormatProvider tIFP = new TestClassIFormatProvider(); String format = TestLibrary.Generator.GetString(-55, false, 0, 255); TestLibrary.TestFramework.BeginScenario("PosTest1:Override the interface and invoke it."); try { if (tIF.ToString(format, tIFP) != null) { TestLibrary.TestFramework.LogError("001", "ExpectedValue(null) !=ActualValue(not null)"); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); retVal = false; } return(retVal); }
public bool PosTest1() { bool retVal = true; TestClassIFormatable tIF = new TestClassIFormatable(); TestClassIFormatProvider tIFP = new TestClassIFormatProvider(); String format = TestLibrary.Generator.GetString(-55, false,0,255); TestLibrary.TestFramework.BeginScenario("PosTest1:Override the interface and invoke it."); try { if (tIF.ToString(format,tIFP)!=null) { TestLibrary.TestFramework.LogError("001", "ExpectedValue(null) !=ActualValue(not null)"); retVal = false; } } catch (Exception e) { TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); retVal = false; } return retVal; }