VinTest.TestChain
VinTest¶
TestChain Class¶
Builder for a sequence of TestSteps that make up a test method.
Inheritance Object → TestChain
Implements IEnumerable<TestStep>, IEnumerable
Methods¶
TestChain.Assert(string, Func<bool>, string, int) Method¶
Evaluates condition and records the result under name. Source location is captured automatically for clickable output on failure.
Parameters¶
name String
file String
line Int32
Returns¶
TestChain.AssertEventually(string, int, Func<bool>, int, string, int) Method¶
Polls breakWhen every pollIntervalMs milliseconds
until it returns true or maxMs have elapsed.
public VinTest.TestChain AssertEventually(string name, int maxMs, Func<bool> breakWhen, int pollIntervalMs=500, string file="", int line=0);
Parameters¶
name String
maxMs Int32
pollIntervalMs Int32
file String
line Int32
Returns¶
TestChain.Do(Action) Method¶
Executes action synchronously; fails the test on exception.
Parameters¶
action Action
Returns¶
TestChain.Wait(int) Method¶
Delays next steps for ms milliseconds before continuing.
Parameters¶
ms Int32
Returns¶
TestChain.WaitIf(int, Func<bool>) Method¶
If condition is true at when step executes, delays next steps for ms milliseconds. Otherwise, skip the wait and proceed immediately.
Parameters¶
ms Int32