summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.CustomAttributes/UiTestAttribute.cs
blob: 0eef90ebd73ec03dc41c2bd15df607bc9f20f73e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Diagnostics;

namespace Xamarin.Forms.CustomAttributes
{
	[Conditional ("DEBUG")]
	[AttributeUsage (
		AttributeTargets.Class |
		AttributeTargets.Event |
		AttributeTargets.Property |
		AttributeTargets.Method |
		AttributeTargets.Delegate,
		AllowMultiple = true
		)]
	public class UiTestAttribute : Attribute
	{
		public UiTestAttribute (Type formsType)
		{
			Type = formsType;
			MemberName = "";
		}

		public UiTestAttribute (Type formsType, string memberName)
		{
			Type = formsType;
			MemberName = memberName;
		}

		public Type Type { get; }

		public string MemberName { get; }
	}
}