diff options
author | Marek Safar <marek.safar@gmail.com> | 2020-05-18 14:45:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 14:45:12 +0300 |
commit | 0f1b1a569fcd16bd9e7c180d3c8bef1080348d9d (patch) | |
tree | 03141ac46936c442b7ed294dd42d5f3bdc605880 /test/Mono.Linker.Tests.Cases.Expectations/Assertions | |
parent | 9c84659e8ff12a7af366a5f4d64ffc6c3623618c (diff) |
Sweep main module-references (#1193)
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions')
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptModuleReferenceAttribute.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptModuleReferenceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptModuleReferenceAttribute.cs new file mode 100644 index 000000000..c27287679 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptModuleReferenceAttribute.cs @@ -0,0 +1,17 @@ +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions +{ + /// <summary> + /// Verifies that a module reference exists in the test case assembly + /// </summary> + [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)] + public class KeptModuleReferenceAttribute : KeptAttribute + { + public KeptModuleReferenceAttribute (string name) + { + if (string.IsNullOrEmpty (name)) + throw new ArgumentException ("Value cannot be null or empty.", nameof (name)); + } + } +} |