/// <summary> /// Initializes a new instance of the <see cref="BaseTestObject" /> class /// </summary> /// <param name="baseTestObject">An existing base test object</param> public BaseTestObject(BaseTestObject baseTestObject) { this.Log = baseTestObject.Log; this.SoftAssert = baseTestObject.SoftAssert; this.PerfTimerCollection = baseTestObject.PerfTimerCollection; this.Values = baseTestObject.Values; this.Objects = baseTestObject.Objects; this.ManagerStore = baseTestObject.ManagerStore; baseTestObject.Log.LogMessage(MessageType.INFORMATION, "Setup test object"); }
/// <summary> /// Initializes a new instance of the <see cref="DriverManager"/> class /// </summary> /// <param name="funcToRun">How to get the underlying driver</param> /// <param name="testObject">The associate test object</param> protected DriverManager(Func <object> funcToRun, BaseTestObject testObject) { this.GetDriver = funcToRun; this.testObject = testObject; }