-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix testing requiring Mvc.Testing fix
- Loading branch information
Showing
4 changed files
with
57 additions
and
70 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
27 changes: 27 additions & 0 deletions
27
test/Elastic.Apm.Tests.Utilities/XUnit/FactRequiresMvcTestingFix.cs
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,27 @@ | ||
// Licensed to Elasticsearch B.V under | ||
// one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
|
||
using System; | ||
using Xunit; | ||
|
||
namespace Elastic.Apm.Tests.Utilities.XUnit; | ||
|
||
public sealed class FactRequiresMvcTestingFix : FactAttribute | ||
{ | ||
public FactRequiresMvcTestingFix() | ||
{ | ||
if (Environment.Version.Major < 7) return; | ||
Skip = $"This test is disabled on .NET 7 until https://github.com/dotnet/aspnetcore/issues/45233"; | ||
} | ||
} | ||
|
||
public sealed class TheoryRequiresMvcTestingFix : TheoryAttribute | ||
{ | ||
public TheoryRequiresMvcTestingFix() | ||
{ | ||
if (Environment.Version.Major < 7) return; | ||
Skip = $"This test is disabled on .NET 7 until https://github.com/dotnet/aspnetcore/issues/45233"; | ||
} | ||
} |
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