summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.CustomAttributes/UiTestAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.CustomAttributes/UiTestAttribute.cs')
-rw-r--r--Xamarin.Forms.CustomAttributes/UiTestAttribute.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Xamarin.Forms.CustomAttributes/UiTestAttribute.cs b/Xamarin.Forms.CustomAttributes/UiTestAttribute.cs
new file mode 100644
index 00000000..0eef90eb
--- /dev/null
+++ b/Xamarin.Forms.CustomAttributes/UiTestAttribute.cs
@@ -0,0 +1,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; }
+ }
+}