Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LogDoesNotContainAttribute.cs « Assertions « Mono.Linker.Tests.Cases.Expectations « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 599908cfb430e55637d2fcd45a403d728618f439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
	[AttributeUsage (
		AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Constructor | AttributeTargets.Field,
		AllowMultiple = true,
		Inherited = false)]
	public class LogDoesNotContainAttribute : EnableLoggerAttribute
	{
		public LogDoesNotContainAttribute (string message, bool regexMatch = false)
		{
			if (string.IsNullOrEmpty (message))
				throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
		}
	}
}