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/KeptResourceInAssemblyAttribute.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs
new file mode 100644
index 000000000..c17fed964
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs
@@ -0,0 +1,18 @@
+using System;
+
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+ /// <summary>
+ /// Verifies that an embedded resource exists in an assembly
+ /// </summary>
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class KeptResourceInAssemblyAttribute : BaseInAssemblyAttribute {
+ public KeptResourceInAssemblyAttribute (string assemblyFileName, string resourceName)
+ {
+ if (string.IsNullOrEmpty (assemblyFileName))
+ throw new ArgumentNullException (nameof (assemblyFileName));
+
+ if (string.IsNullOrEmpty (resourceName))
+ throw new ArgumentNullException (nameof (resourceName));
+ }
+ }
+}