Beispiel #1
0
 public void ServiceCallDisposed()
 {
     _serviceCall.Dispose();
     Assert.ThrowsException <ObjectDisposedException>(() => _serviceCall.SetResult(""));
     Assert.ThrowsException <ObjectDisposedException>(() => _serviceCall.SetException(new AppCenterException("")));
     Assert.ThrowsException <ObjectDisposedException>(() => _serviceCall.ContinueWith(_ => {}));
     Assert.ThrowsException <ObjectDisposedException>(() => _serviceCall.CopyState(new ServiceCall()));
     Assert.ThrowsException <ObjectDisposedException>(() => _serviceCall.Cancel());
 }