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:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs
new file mode 100644
index 000000000..c09982a5a
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs
@@ -0,0 +1,21 @@
+using System;
+
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
+ [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)]
+ public class KeptAttributeAttribute : KeptAttribute
+ {
+
+ public KeptAttributeAttribute (string attributeName)
+ {
+ if (string.IsNullOrEmpty (attributeName))
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (attributeName));
+ }
+
+ public KeptAttributeAttribute (Type type)
+ {
+ if (type == null)
+ throw new ArgumentNullException (nameof (type));
+ }
+ }
+}