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/UnrecognizedReflectionAccessPatternAttribute.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs
new file mode 100644
index 000000000..666c2da63
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
+ [AttributeUsage (AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
+ public class UnrecognizedReflectionAccessPatternAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
+ public UnrecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, Type [] reflectionMethodParameters,
+ string message = null)
+ {
+ if (reflectionMethodType == null)
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (reflectionMethodType));
+ if (reflectionMethodName == null)
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (reflectionMethodName));
+ if (reflectionMethodParameters == null)
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (reflectionMethodParameters));
+
+ if (message == null)
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
+ }
+ }
+}