diff options
author | Mike Voorhees <mrvoorhe@users.noreply.github.com> | 2021-09-11 09:42:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 09:42:45 +0300 |
commit | be8ec96d897e0817cb89578405c154b4f9252ac5 (patch) | |
tree | 62ccf9327a06883569a8038c31425ab14947e08a /test/Mono.Linker.Tests.Cases.Expectations/Assertions | |
parent | 0c359eadea75bde0de74d784fdc45788b3668e73 (diff) |
Refactor how test case metadata is obtained. (#2268)
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions')
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestCaseRequirementsAttribute.cs | 18 | ||||
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestRunCharacteristics.cs | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestCaseRequirementsAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestCaseRequirementsAttribute.cs new file mode 100644 index 000000000..687e230df --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestCaseRequirementsAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions +{ + [AttributeUsage (AttributeTargets.Class)] + public class TestCaseRequirementsAttribute : BaseExpectedLinkedBehaviorAttribute + { + public TestCaseRequirementsAttribute (TestRunCharacteristics targetFrameworkCharacteristics, string reason) + { + if (reason == null) + throw new ArgumentNullException (nameof (reason)); + } + } +}
\ No newline at end of file diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestRunCharacteristics.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestRunCharacteristics.cs new file mode 100644 index 000000000..18d77a12f --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/TestRunCharacteristics.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions +{ + [Flags] + public enum TestRunCharacteristics + { + TargetingNetFramework = 1, + TargetingNetCore = 2, + SupportsDefaultInterfaceMethods = 8, + SupportsStaticInterfaceMethods = 16, + TestFrameworkSupportsMcs = 32 + } +}
\ No newline at end of file |