Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix MemoryDiagnoserTests issues, fixes #813
- Loading branch information
1 parent
0f9c48d
commit 33e5686
Showing
4 changed files
with
36 additions
and
13 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
16 changes: 16 additions & 0 deletions
16
tests/BenchmarkDotNet.Tests/XUnit/TheoryNetCore21PlusOnlyAttribute.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,16 @@ | ||
using BenchmarkDotNet.Portability; | ||
using BenchmarkDotNet.Toolchains.DotNetCli; | ||
using Xunit; | ||
|
||
namespace BenchmarkDotNet.Tests.XUnit | ||
{ | ||
public class TheoryNetCore21PlusOnlyAttribute : TheoryAttribute | ||
{ | ||
// ReSharper disable once VirtualMemberCallInConstructor | ||
public TheoryNetCore21PlusOnlyAttribute(string skipReason) | ||
{ | ||
if (!RuntimeInformation.IsNetCore || NetCoreAppSettings.GetCurrentVersion() == NetCoreAppSettings.NetCoreApp20) | ||
Skip = skipReason; | ||
} | ||
} | ||
} |