Class TestResultBase<T>
Result of test
Inherited Members
Namespace: PayrollEngine.Client.Test
Assembly: PayrollEngine.Client.Test.dll
Syntax
public abstract class TestResultBase<T> where T : IAttributeObject
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
TestResultBase(T, T)
Initializes a new instance of the TestResultBase<T> class
Declaration
protected TestResultBase(T expectedResult, T actualResult = default)
Parameters
| Type | Name | Description |
|---|---|---|
| T | expectedResult | The expected result |
| T | actualResult | The actual result |
Properties
ActualResult
The actual result
Declaration
public T ActualResult { get; }
Property Value
| Type | Description |
|---|---|
| T |
ExpectedResult
The expected result
Declaration
public T ExpectedResult { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
Failed()
Test failed test
Declaration
public bool Failed()
Returns
| Type | Description |
|---|---|
| bool |
FirstInvalidAttribute()
Test attribute values
Declaration
public virtual Tuple<string, object, object> FirstInvalidAttribute()
Returns
| Type | Description |
|---|---|
| Tuple<string, object, object> |
ValidAttributes()
Test attribute values
Declaration
public bool ValidAttributes()
Returns
| Type | Description |
|---|---|
| bool |
ValidCulture()
Get for valid culture
Declaration
public abstract bool ValidCulture()
Returns
| Type | Description |
|---|---|
| bool |
ValidValue()
Get for valid value
Declaration
public abstract bool ValidValue()
Returns
| Type | Description |
|---|---|
| bool |