Show / Hide Table of Contents

Class TestResultBase<T>

Result of test

Inheritance
object
TestResultBase<T>
NumericTestResultBase<T>
PayrunTestResult
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX