예제 #1
0
 /* ITestVP CreateTestVP()
  * Return ITestVP interface.
  * This interface is used to perform check point.
  */
 public static ITestCheckPoint CreateTestVP()
 {
     if (String.IsNullOrEmpty(_testVPDLL))
     {
         throw new CannotLoadDllException("Test VP dll can not be null.");
     }
     try
     {
         _testVP = (ITestCheckPoint)LoadDll(_testVPDLL, _testVPClassName);
     }
     catch (Exception ex)
     {
         throw new CannotLoadDllException("Can not create instance of test VP: " + ex.ToString());
     }
     if (_testVP == null)
     {
         throw new CannotLoadDllException("Can not create instance of test VP.");
     }
     else
     {
         return(_testVP);
     }
 }
예제 #2
0
 /*  void LoadPlugin()
  *  load interface from TestFactory.
  */
 private void LoadPlugin()
 {
     this._testVP = TestFactory.CreateTestVP();
 }
예제 #3
0
 /* ITestVP CreateTestVP()
  * Return ITestVP interface.
  * This interface is used to perform check point.
  */
 public static ITestCheckPoint CreateTestVP()
 {
     if (String.IsNullOrEmpty(_testVPDLL))
     {
         throw new CannotLoadDllException("Test VP dll can not be null.");
     }
     try
     {
         _testVP = (ITestCheckPoint)LoadDll(_testVPDLL, _testVPClassName);
     }
     catch (Exception ex)
     {
         throw new CannotLoadDllException("Can not create instance of test VP: " + ex.ToString());
     }
     if (_testVP == null)
     {
         throw new CannotLoadDllException("Can not create instance of test VP.");
     }
     else
     {
         return _testVP;
     }
 }
예제 #4
0
 /*  void LoadPlugin()
  *  load interface from TestFactory.
  */
 private void LoadPlugin()
 {
     this._testVP = TestFactory.CreateTestVP();
 }