forked from bUnit-dev/bUnit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added StringSyntax support so that IDE's help out the user
- Loading branch information
1 parent
b5a24a2
commit ace36cb
Showing
8 changed files
with
50 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#if !NET7_0_OR_GREATER | ||
namespace System.Diagnostics.CodeAnalysis; | ||
|
||
/// <summary>Fake version of the StringSyntaxAttribute, which was introduced in .NET 7</summary> | ||
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)] | ||
public sealed class StringSyntaxAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Initializes the <see cref="StringSyntaxAttribute"/> with the identifier of the syntax used. | ||
/// </summary> | ||
public StringSyntaxAttribute(string syntax) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes the <see cref="StringSyntaxAttribute"/> with the identifier of the syntax used. | ||
/// </summary> | ||
public StringSyntaxAttribute(string syntax, params object?[] arguments) | ||
{ | ||
} | ||
|
||
/// <summary>The syntax identifier for strings containing URIs.</summary> | ||
public const string Uri = nameof(Uri); | ||
} | ||
#endif |
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