-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50dec19
commit fec8d66
Showing
28 changed files
with
527 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Xunit.Analyzers; | ||
|
||
public class EmptyAbstractionsContext : IAbstractionsContext | ||
{ | ||
EmptyAbstractionsContext() | ||
{ } | ||
|
||
public static EmptyAbstractionsContext Instance { get; } = new(); | ||
|
||
public INamedTypeSymbol? IMessageSinkType => null; | ||
|
||
public INamedTypeSymbol? ISourceInformationProviderType => null; | ||
|
||
public INamedTypeSymbol? ITestAssemblyType => null; | ||
|
||
public INamedTypeSymbol? ITestCaseType => null; | ||
|
||
public INamedTypeSymbol? ITestClassType => null; | ||
|
||
public INamedTypeSymbol? ITestCollectionType => null; | ||
|
||
public INamedTypeSymbol? ITestFrameworkDiscovererType => null; | ||
|
||
public INamedTypeSymbol? ITestFrameworkExecutorType => null; | ||
|
||
public INamedTypeSymbol? ITestFrameworkType => null; | ||
|
||
public INamedTypeSymbol? ITestMethodType => null; | ||
|
||
public INamedTypeSymbol? ITestType => null; | ||
|
||
public INamedTypeSymbol? IXunitSerializableType => null; | ||
|
||
public Version Version => new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
using System; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Xunit.Analyzers; | ||
|
||
/// <summary> | ||
/// Context with information from <c>xunit.abstractions</c> (in v2) or <c>xunit.v3.common</c> or <c>xunit.v3.core</c> (in v3). | ||
/// The types here are the ones common to both. | ||
/// </summary> | ||
public interface IAbstractionsContext | ||
{ | ||
/// <summary> | ||
/// Gets a reference to type <c>IMessageSink</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? IMessageSinkType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ISourceInformationProvider</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ISourceInformationProviderType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestAssembly</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestAssemblyType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestCase</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestCaseType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestClass</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestClassType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestCollection</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestCollectionType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestFrameworkDiscoverer</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestFrameworkDiscovererType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestFrameworkExecutor</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestFrameworkExecutorType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestFramework</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestFrameworkType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITestMethod</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestMethodType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>ITest</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>IXunitSerializable</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? IXunitSerializableType { get; } | ||
|
||
/// <summary> | ||
/// Gets the version number of the <c>xunit.abstractions</c> or <c>xunit.v3.common</c> assembly. | ||
/// </summary> | ||
public Version Version { get; } | ||
} |
Oops, something went wrong.