diff options
author | Niklas Therning <nitherni@microsoft.com> | 2018-09-18 13:21:49 +0300 |
---|---|---|
committer | Niklas Therning <nitherni@microsoft.com> | 2018-09-18 13:21:49 +0300 |
commit | 49f9ed0e66fc2d4cd682821396c6af5e80182048 (patch) | |
tree | 2de750c1ac8a487d7f6d149592a6362ade6a5a77 /tests/CoreFX/runtest/src/TestUtils/TestFileSetup/XUnitTestAssembly.cs | |
parent | f9124d69e41d42196510dd7234b2d53fed48ad4c (diff) | |
parent | 267410d0ab65fabc61d6cd3e0e1c2ebed43ea661 (diff) |
Merge remote-tracking branch 'upstream/master' into bump-corert
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; + } +} |