Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xunit-binaries.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'BenchmarkDiscover.cs')
-rw-r--r--BenchmarkDiscover.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/BenchmarkDiscover.cs b/BenchmarkDiscover.cs
new file mode 100644
index 0000000..40d2d8a
--- /dev/null
+++ b/BenchmarkDiscover.cs
@@ -0,0 +1,14 @@
+using System.Collections.Generic;
+using Xunit.Sdk;
+using Xunit.Abstractions;
+
+namespace Xunit.NetCore.Extensions
+{
+ public class BenchmarkDiscoverer : ITraitDiscoverer
+ {
+ public IEnumerable<KeyValuePair<string, string>> GetTraits(IAttributeInfo traitAttribute)
+ {
+ yield return new KeyValuePair<string, string>("Benchmark", "True");
+ }
+ }
+}