Class TcoContextTestRunners
Series of extension method for execution action within a TcoContext
.
Inheritance
System.Object
TcoContextTestRunners
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TcoCore.Testing
Assembly: TcoCoreConnector.dll
Syntax
public static class TcoContextTestRunners
Methods
| Improve this Doc View SourceRun(_internals_TcoContext, UInt64, UInt64)
[Executes call on PLC task] Executes with cycle with open-action-close context.
Make sure you call _internals_TcoContext_.ProbeRun
instead of Run
method in your PLC program. (ExecuteProbeRun(UInt64, UInt64))
Declaration
public static void Run(this _internals_TcoContext context, ulong numberOfCycles = 1UL, ulong testId = 0UL)
Parameters
Type | Name | Description |
---|---|---|
_internals_TcoContext | context | Context |
System.UInt64 | numberOfCycles | |
System.UInt64 | testId |
Run(ITestContext, Action)
[Call from external environment] Runs the remote action once.
Declaration
public static void Run(this ITestContext context, Action action)
Parameters
Type | Name | Description |
---|---|---|
ITestContext | context | Context |
System.Action | action | Action to run. |
Run(ITestContext, Action, Func<Boolean>)
[Call from external environment] Runs with cycle with open-action-close context.
Declaration
public static void Run(this ITestContext context, Action action, Func<bool> endCondition)
Parameters
Type | Name | Description |
---|---|---|
ITestContext | context | Context |
System.Action | action | Acton to run |
System.Func<System.Boolean> | endCondition | End condition. When |
Run(ITestContext, Func<Boolean>)
[Call from external environment] Runs with cycle with open-action-close context.
Declaration
public static void Run(this ITestContext context, Func<bool> action)
Parameters
Type | Name | Description |
---|---|---|
ITestContext | context | Context |
System.Func<System.Boolean> | action | Action to run, when returns |