private void DisposeVideoWorker()
 {
     if (VideoWorker != null)
     {
         VideoWorker.Dispose();
         VideoWorker = null;
     }
 }
示例#2
0
        public void Dispose_DisposesSocket()
        {
            // Arrange

            // Act
            _target.Dispose();

            // Assert
            _mockTcpSocket.Verify(x => x.Dispose());
        }