protected override bool Visit(ITestMethodStarting testMethodStarting) { var taskInfo = context.GetRemoteTask(testMethodStarting); taskInfo.Starting(); return(context.ShouldContinue); }
_TestMethodStarting AdaptTestMethodStarting(ITestMethodStarting message) { var testCollectionUniqueID = UniqueIDForTestCollection(assemblyUniqueID, message.TestCollection); var testClassUniqueID = UniqueIDForTestClass(testCollectionUniqueID, message.TestClass); var testMethodUniqueID = UniqueIDForTestMethod(testClassUniqueID, message.TestMethod); return(new _TestMethodStarting { AssemblyUniqueID = assemblyUniqueID, TestCollectionUniqueID = testCollectionUniqueID, TestClassUniqueID = testClassUniqueID, TestMethod = message.TestMethod.Method.Name, TestMethodUniqueID = testMethodUniqueID, }); }
/// <summary> /// Called when an instance of <see cref="ITestMethodStarting"/> is sent to the message sink. /// </summary> /// <param name="testMethodStarting">The message.</param> /// <returns>Return <c>true</c> to continue executing tests; <c>false</c> otherwise.</returns> protected virtual bool Visit(ITestMethodStarting testMethodStarting) { return(true); }
protected override bool Visit(ITestMethodStarting testMethodStarting) { Calls.Add("ITestMethodStarting"); return base.Visit(testMethodStarting); }
protected override bool Visit(ITestMethodStarting testMethodStarting) { Calls.Add("ITestMethodStarting"); return(base.Visit(testMethodStarting)); }