Class CustomTestParser<TFunction, TContext>
Parse custom test class
Inherited Members
Namespace: PayrollEngine.Client.Test
Assembly: PayrollEngine.Client.Test.dll
Syntax
public class CustomTestParser<TFunction, TContext> : CustomTestParserBase where TFunction : CustomTestBase<TContext> where TContext : TestContextBase
Type Parameters
| Name | Description |
|---|---|
| TFunction | |
| TContext |
Constructors
CustomTestParser(string, List<string>)
Custom text parser constructor
Declaration
public CustomTestParser(string testName, List<string> sourceFiles)
Parameters
| Type | Name | Description |
|---|---|---|
| string | testName | The test name |
| List<string> | sourceFiles | THe source files |
Properties
TestType
The custom test type, maybe null
Declaration
public Type TestType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
GetDefaultAssemblies()
Get the test default assembly names
Declaration
protected virtual List<string> GetDefaultAssemblies()
Returns
| Type | Description |
|---|---|
| List<string> | Assembly name list |
GetDefaultReferences()
Get the test default references
Declaration
protected virtual List<Type> GetDefaultReferences()
Returns
| Type | Description |
|---|---|
| List<Type> | Type reference list |
GetTest(string, params Type[])
Get the test method
Declaration
public MethodInfo GetTest(string testName, params Type[] parameterTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| string | testName | The test name |
| Type[] | parameterTypes | The parameter types |
Returns
| Type | Description |
|---|---|
| MethodInfo | THe test method info |