/// <summary> /// Sets the result of asynchronous operation. /// It will stop waiting in the main thread and verify the test result. /// </summary> public void Signal(bool success) { lock (this) { condition++; result = success ? WaiterResults.Success : WaiterResults.Failed; } }
public void Reset() { result = WaiterResults.Unknown; }