/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/IntegrationTest/Harness/XUnitShared/OutOfProcess/TestInvoker_OutOfProc.cs
61 строка
2 KB
David Barbet
Shorten file paths to prevent long path issues opening the slnx
10 дек 2025, 22:44
10 дек 2025, 22:44
7830fcf
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Xunit.OutOfProcess { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.Remoting; using Xunit.Abstractions; using Xunit.Harness; using Xunit.InProcess; using Xunit.Sdk; internal class TestInvoker_OutOfProc : OutOfProcComponent { internal TestInvoker_OutOfProc(VisualStudioInstance visualStudioInstance) : base(visualStudioInstance) { TestInvokerInProc = CreateInProcComponent<TestInvoker_InProc>(visualStudioInstance); } internal TestInvoker_InProc TestInvokerInProc { get; } public InProcessIdeTestAssemblyRunner CreateTestAssemblyRunner(ITestAssembly testAssembly, IXunitTestCase[] testCases, IMessageSink diagnosticMessageSink, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions) { return TestInvokerInProc.CreateTestAssemblyRunner(testAssembly, testCases, diagnosticMessageSink, executionMessageSink, executionOptions); } private class TestOutputHelperWrapper : MarshalByRefObject, ITestOutputHelper { private readonly ITestOutputHelper _testOutputHelper; public TestOutputHelperWrapper(ITestOutputHelper testOutputHelper) { _testOutputHelper = testOutputHelper; } public void WriteLine(string message) { _testOutputHelper.WriteLine(message); } public void WriteLine(string format, params object?[] args) { _testOutputHelper.WriteLine(format, args); } // The life of this object is managed explicitly public override object? InitializeLifetimeService() { return null; } } } }