CrabUI
Loading...
Searching...
No Matches
CrabUITest.FillMethods Class Reference

This class contains filling methods
An Action<CUIComponent> that creates some GUI and attaches it to passed component
I use them in testing, you can use them as examples. More...

Inheritance diagram for CrabUITest.FillMethods:
CrabUITest.ComplexTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.ComponentTest CrabUITest.EventTest CrabUITest.EventTest CrabUITest.LayoutTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.PropTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.RandomTest CrabUITest.SerializationTest CrabUITest.SerializationTest CrabUITest.SerializationTest

Static Public Member Functions

static bool IsTestMethod (MethodInfo mi)
 

Detailed Description

This class contains filling methods
An Action<CUIComponent> that creates some GUI and attaches it to passed component
I use them in testing, you can use them as examples.

Definition at line 23 of file FillMethods.cs.

Member Function Documentation

◆ IsTestMethod()

static bool CrabUITest.FillMethods.IsTestMethod ( MethodInfo mi)
static

Definition at line 25 of file FillMethods.cs.

26 {
27 ParameterInfo[] args = mi.GetParameters();
28 bool correctSignature = args.Length == 1 && args[0].ParameterType == typeof(CUIComponent);
29 bool shoudIgnore = Attribute.IsDefined(mi, typeof(IgnoreAttribute));
30
31 return mi.IsStatic && mi.IsPublic && correctSignature && !shoudIgnore;
32 }
Base class for all components.

The documentation for this class was generated from the following file: