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/RemovedMemberInAssemblyAttribute.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs
new file mode 100644
index 000000000..36bc435bf
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+ [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
+ public class RemovedMemberInAssemblyAttribute : BaseInAssemblyAttribute {
+
+ public RemovedMemberInAssemblyAttribute (string assemblyFileName, Type type, params string [] memberNames)
+ {
+ if (string.IsNullOrEmpty (assemblyFileName))
+ throw new ArgumentNullException (nameof (assemblyFileName));
+ if (type == null)
+ throw new ArgumentNullException (nameof (type));
+ if (memberNames == null)
+ throw new ArgumentNullException (nameof (memberNames));
+ }
+
+ public RemovedMemberInAssemblyAttribute (string assemblyFileName, string typeName, params string [] memberNames)
+ {
+ if (string.IsNullOrEmpty (assemblyFileName))
+ throw new ArgumentNullException (nameof (assemblyFileName));
+ if (typeName == null)
+ throw new ArgumentNullException (nameof (typeName));
+ if (memberNames == null)
+ throw new ArgumentNullException (nameof (memberNames));
+ }
+ }
+}