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