private void DisposeVideoWorker() { if (VideoWorker != null) { VideoWorker.Dispose(); VideoWorker = null; } }
public void Dispose_DisposesSocket() { // Arrange // Act _target.Dispose(); // Assert _mockTcpSocket.Verify(x => x.Dispose()); }