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

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2020-05-18 14:45:12 +0300
committerGitHub <noreply@github.com>2020-05-18 14:45:12 +0300
commit0f1b1a569fcd16bd9e7c180d3c8bef1080348d9d (patch)
tree03141ac46936c442b7ed294dd42d5f3bdc605880 /test/Mono.Linker.Tests.Cases.Expectations/Assertions
parent9c84659e8ff12a7af366a5f4d64ffc6c3623618c (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.cs17
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));
+ }
+ }
+}