_BeforeTestStarting AdaptBeforeTestStarting(IBeforeTestStarting 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 _BeforeTestStarting
            {
                AssemblyUniqueID = assemblyUniqueID,
                AttributeName = message.AttributeName,
                TestCaseUniqueID = testCaseUniqueID,
                TestCollectionUniqueID = testCollectionUniqueID,
                TestClassUniqueID = testClassUniqueID,
                TestMethodUniqueID = testMethodUniqueID,
                TestUniqueID = testUniqueID
            });
        }
Example #2
0
 /// <summary>
 /// Called when an instance of <see cref="IBeforeTestStarting"/> is sent to the message sink.
 /// </summary>
 /// <param name="beforeTestStarting">The message.</param>
 /// <returns>Return <c>true</c> to continue executing tests; <c>false</c> otherwise.</returns>
 protected virtual bool Visit(IBeforeTestStarting beforeTestStarting)
 {
     return(true);
 }
Example #3
0
 protected override bool Visit(IBeforeTestStarting beforeTestStarting)
 {
     Calls.Add("IBeforeTestStarting");
     return base.Visit(beforeTestStarting);
 }
 protected override bool Visit(IBeforeTestStarting beforeTestStarting)
 {
     Calls.Add("IBeforeTestStarting");
     return(base.Visit(beforeTestStarting));
 }