Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 /*  void LoadPlugin()
  *  load interface from TestFactory.
  */
 private void LoadPlugin()
 {
     this._testVP = TestFactory.CreateTestVP();
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 4
0
 /*  void LoadPlugin()
  *  load interface from TestFactory.
  */
 private void LoadPlugin()
 {
     this._testVP = TestFactory.CreateTestVP();
 }