コード例 #1
0
        protected override bool Visit(ITestMethodStarting testMethodStarting)
        {
            var taskInfo = context.GetRemoteTask(testMethodStarting);

            taskInfo.Starting();
            return(context.ShouldContinue);
        }
コード例 #2
0
        _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,
            });
        }
コード例 #3
0
ファイル: TestMessageVisitor.cs プロジェクト: zvirja/xunit
 /// <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);
 }
コード例 #4
0
ファイル: SpyTestMessageVisitor.cs プロジェクト: Xarlot/xunit
 protected override bool Visit(ITestMethodStarting testMethodStarting)
 {
     Calls.Add("ITestMethodStarting");
     return base.Visit(testMethodStarting);
 }
コード例 #5
0
 protected override bool Visit(ITestMethodStarting testMethodStarting)
 {
     Calls.Add("ITestMethodStarting");
     return(base.Visit(testMethodStarting));
 }