_AfterTestStarting AdaptAfterTestStarting(IAfterTestStarting message)
        {
            var testCollectionUniqueID = UniqueIDForTestCollection(assemblyUniqueID, message.TestCollection);
            var testClassUniqueID      = UniqueIDForTestClass(testCollectionUniqueID, message.TestClass);
            var testMethodUniqueID     = UniqueIDForTestMethod(testClassUniqueID, message.TestMethod);
            var testCaseUniqueID       = message.TestCase.UniqueID;
            var testUniqueID           = UniqueIDForTest(testCaseUniqueID, message.Test);

            return(new _AfterTestStarting
            {
                AssemblyUniqueID = assemblyUniqueID,
                AttributeName = message.AttributeName,
                TestCaseUniqueID = testCaseUniqueID,
                TestCollectionUniqueID = testCollectionUniqueID,
                TestClassUniqueID = testClassUniqueID,
                TestMethodUniqueID = testMethodUniqueID,
                TestUniqueID = testUniqueID
            });
        }
示例#2
0
 /// <summary>
 /// Called when an instance of <see cref="IAfterTestStarting"/> is sent to the message sink.
 /// </summary>
 /// <param name="afterTestStarting">The message.</param>
 /// <returns>Return <c>true</c> to continue executing tests; <c>false</c> otherwise.</returns>
 protected virtual bool Visit(IAfterTestStarting afterTestStarting)
 {
     return(true);
 }
示例#3
0
 protected override bool Visit(IAfterTestStarting afterTestStarting)
 {
     Calls.Add("IAfterTestStarting");
     return base.Visit(afterTestStarting);
 }
 protected override bool Visit(IAfterTestStarting afterTestStarting)
 {
     Calls.Add("IAfterTestStarting");
     return(base.Visit(afterTestStarting));
 }