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/KeptResourceAttribute.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs
new file mode 100644
index 000000000..0106dfd1a
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+ /// <summary>
+ /// Verifies that a resource exists in the test case assembly
+ /// </summary>
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class KeptResourceAttribute : KeptAttribute {
+ public KeptResourceAttribute (string name)
+ {
+ if (string.IsNullOrEmpty (name))
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (name));
+ }
+ }
+}