Skip to content

Commit

Permalink
Remove VisualStudioSourceInformationProvider and DiaSession-related c…
Browse files Browse the repository at this point in the history
…lasses
  • Loading branch information
bradwilson committed Sep 25, 2023
1 parent 4a35ce7 commit 8ae0d06
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 493 deletions.
5 changes: 5 additions & 0 deletions src/common/NullMessageSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public class NullMessageSink : LongLivedMarshalByRefObject, IMessageSink
, IMessageSinkWithTypes
#endif
{
/// <summary>
/// Gets the singleton instance of the <see cref="NullMessageSink"/>.
/// </summary>
public static NullMessageSink Instance { get; } = new NullMessageSink();

/// <inheritdoc/>
public void Dispose() { }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ namespace Xunit
/// </summary>
public class NullSourceInformationProvider : LongLivedMarshalByRefObject, ISourceInformationProvider
{
/// <summary>
/// Gets the singleton instance of the <see cref="NullSourceInformationProvider"/>.
/// </summary>
public static NullSourceInformationProvider Instance { get; } = new NullSourceInformationProvider();

/// <inheritdoc/>
public ISourceInformation GetSourceInformation(ITestCase testCase)
{
Expand Down

This file was deleted.

15 changes: 2 additions & 13 deletions src/xunit.runner.utility/Frameworks/XunitFrontController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,10 @@ public class XunitFrontController : IFrontController, ITestCaseDescriptorProvide
this.configFileName = configFileName;
this.shadowCopy = shadowCopy;
this.shadowCopyFolder = shadowCopyFolder;
this.sourceInformationProvider = sourceInformationProvider;
this.diagnosticMessageSink = diagnosticMessageSink ?? new NullMessageSink();
this.sourceInformationProvider = sourceInformationProvider ?? NullSourceInformationProvider.Instance;
this.diagnosticMessageSink = diagnosticMessageSink ?? NullMessageSink.Instance;

Guard.FileExists("assemblyFileName", assemblyFileName);

if (this.sourceInformationProvider == null)
{
#if NETSTANDARD
this.sourceInformationProvider = new NullSourceInformationProvider();
#else
this.sourceInformationProvider = new VisualStudioSourceInformationProvider(assemblyFileName);
#endif
toDispose.Push(this.sourceInformationProvider);
}

}

ITestCaseBulkDeserializer BulkDeserializer
Expand Down
8 changes: 0 additions & 8 deletions src/xunit.runner.utility/Utility/DiaNavigationData.cs

This file was deleted.

84 changes: 0 additions & 84 deletions src/xunit.runner.utility/Utility/DiaSession.cs

This file was deleted.

39 changes: 0 additions & 39 deletions src/xunit.runner.utility/Utility/DiaSessionWrapper.cs

This file was deleted.

0 comments on commit 8ae0d06

Please sign in to comment.