-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: disable explicit .NET7 and upgrade to xunit v3 (#728)
Upgrade testing projects to [xunit v3](https://xunit.net/docs/getting-started/v3/migration) and remove the .NET Stryker mutation badge, because [Stryker.NET doesn't handle xUnit v3 properly](stryker-mutator/stryker-net#3117).
- Loading branch information
Showing
244 changed files
with
2,313 additions
and
2,294 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,53 @@ | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Testably.Abstractions.TestHelpers | ||
{ | ||
|
||
public static class Skip | ||
{ | ||
public static void IfNot(bool condition, | ||
[CallerArgumentExpression("condition")] string reason = "") | ||
{ | ||
aweXpect.Skip.Unless(condition, reason); | ||
} | ||
|
||
public static void If(bool condition, | ||
[CallerArgumentExpression("condition")] string reason = "") | ||
{ | ||
aweXpect.Skip.When(condition, reason); | ||
} | ||
} | ||
} | ||
|
||
#if !NET6_0_OR_GREATER | ||
|
||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
// ReSharper disable once CheckNamespace | ||
namespace System.Runtime.CompilerServices | ||
{ | ||
/// <summary> | ||
/// Indicates that a parameter captures the expression passed for another parameter as a string. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Parameter)] | ||
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
internal sealed class CallerArgumentExpressionAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CallerArgumentExpressionAttribute" /> class. | ||
/// </summary> | ||
/// <param name="parameterName">The name of the parameter whose expression should be captured as a string.</param> | ||
public CallerArgumentExpressionAttribute(string parameterName) | ||
{ | ||
ParameterName = parameterName; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the name of the parameter whose expression should be captured as a string. | ||
/// </summary> | ||
public string ParameterName { get; } | ||
} | ||
} | ||
|
||
#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
Oops, something went wrong.