diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs new file mode 100644 index 000000000..60cab2a3f --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs @@ -0,0 +1,16 @@ +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions { + /// <summary> + /// Verifies that an assembly does not exist in the output directory + /// </summary> + [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)] + public class RemovedAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute { + + public RemovedAssemblyAttribute (string fileName) + { + if (string.IsNullOrEmpty (fileName)) + throw new ArgumentException ("Value cannot be null or empty.", nameof (fileName)); + } + } +}
\ No newline at end of file |