-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backfill XML docs on all the context objects
- Loading branch information
1 parent
7e82f3f
commit 1bd651f
Showing
12 changed files
with
192 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
using System; | ||
|
||
namespace Xunit.Analyzers; | ||
|
||
public interface IAssertContext | ||
{ | ||
/// <summary> | ||
/// Gets a flag indicating whether <c>Assert.Fail</c> is supported. | ||
/// </summary> | ||
bool SupportsAssertFail { get; } | ||
|
||
/// <summary> | ||
/// Gets the version number of the assertion assembly. | ||
/// </summary> | ||
Version Version { get; } | ||
} |
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 |
---|---|---|
@@ -1,34 +1,85 @@ | ||
using System; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace Xunit.Analyzers; | ||
|
||
public interface ICoreContext | ||
{ | ||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.ClassDataAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ClassDataAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.CollectionAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? CollectionAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.CollectionDefinitionAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? CollectionDefinitionAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.Sdk.DataAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? DataAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.FactAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? FactAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.IClassFixture<T></c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? IClassFixtureType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.ICollectionFixture<T></c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ICollectionFixtureType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.InlineDataAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? InlineDataAttributeType { get; } | ||
|
||
// TODO: This will need to be updated when v3 names are finalized | ||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.Abstractions.ITestOutputHelper</c> (v2) | ||
/// or <c>Xunit.v3._ITestOutputHelper</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? ITestOutputHelperType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.MemberDataAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? MemberDataAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a reference to type <c>Xunit.TheoryAttribute</c>, if available. | ||
/// </summary> | ||
INamedTypeSymbol? TheoryAttributeType { get; } | ||
|
||
/// <summary> | ||
/// Gets a flag indicating whether theory data can be automatically converted from a <see cref="string"/> | ||
/// value into a <see cref="DateTimeOffset"/> or a <see cref="Guid"/>. | ||
/// </summary> | ||
bool TheorySupportsConversionFromStringToDateTimeOffsetAndGuid { get; } | ||
|
||
/// <summary> | ||
/// Gets a flag indicating whether theory methods support default parameter values. | ||
/// </summary> | ||
bool TheorySupportsDefaultParameterValues { get; } | ||
|
||
/// <summary> | ||
/// Gets a flag indicating whether theory methods support params arrays. | ||
/// </summary> | ||
bool TheorySupportsParameterArrays { get; } | ||
|
||
/// <summary> | ||
/// Gets the version number of the core assembly. | ||
/// </summary> | ||
Version Version { get; } | ||
} |
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
Oops, something went wrong.