public void ReceiveData(string data) { ReceiveDataInvoked.Set(); if (data == ScenarioTestHelpers.LastMessage) { ReceiveDataCompleted.Set(); } }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { LogReceived.Dispose(); ReceiveDataInvoked.Dispose(); ReceiveDataCompleted.Dispose(); ReceiveStreamInvoked.Dispose(); ReceiveStreamCompleted.Dispose(); } _disposed = true; }