Пример #1
0
 /// <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;
     }
 }
Пример #2
0
 /// <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;
     }
 }
Пример #3
0
 public void Reset()
 {
     result = WaiterResults.Unknown;
 }
Пример #4
0
 public void Reset()
 {
     result = WaiterResults.Unknown;
 }