diff options
Diffstat (limited to 'tests/CoreFX/runtest/src/TestUtils/TestFileSetup/XUnitTestAssembly.cs')
-rw-r--r-- | tests/CoreFX/runtest/src/TestUtils/TestFileSetup/XUnitTestAssembly.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/CoreFX/runtest/src/TestUtils/TestFileSetup/XUnitTestAssembly.cs b/tests/CoreFX/runtest/src/TestUtils/TestFileSetup/XUnitTestAssembly.cs new file mode 100644 index 000000000..6570b0af8 --- /dev/null +++ b/tests/CoreFX/runtest/src/TestUtils/TestFileSetup/XUnitTestAssembly.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Newtonsoft.Json; + +namespace CoreFX.TestUtils.TestFileSetup +{ + public class XUnitTestAssembly + { + [JsonRequired] + [JsonProperty("name")] + public string Name; + + [JsonRequired] + [JsonProperty("exclusions")] + public Exclusions Exclusions; + + // Used to assign a test url or to override it via the json file definition + [JsonIgnore] + [JsonProperty(Required = Required.Default)] + public string Url; + + } + + public class Exclusions + { + [JsonProperty("namespaces")] + public Exclusion[] Namespaces; + + [JsonProperty("classes")] + public Exclusion[] Classes; + + [JsonProperty("methods")] + public Exclusion[] Methods; + } + + public class Exclusion + { + [JsonRequired] + [JsonProperty("name", Required = Required.DisallowNull)] + public string Name; + + [JsonRequired] + [JsonProperty("reason", Required = Required.DisallowNull)] + public string Reason; + } +} |