public void RsaDigitalSignatureConstructorTest() { RsaKey rsaKey = null; // TODO: Initialize to an appropriate value RsaDigitalSignature target = new RsaDigitalSignature(rsaKey); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void DisposeTest() { RsaKey rsaKey = null; // TODO: Initialize to an appropriate value RsaDigitalSignature target = new RsaDigitalSignature(rsaKey); // TODO: Initialize to an appropriate value target.Dispose(); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing) { var digitalSignature = _digitalSignature; if (digitalSignature != null) { digitalSignature.Dispose(); _digitalSignature = null; } _isDisposed = true; } }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged ResourceMessages.</param> protected virtual void Dispose(bool disposing) { // Check to see if Dispose has already been called. if (!this._isDisposed) { // If disposing equals true, dispose all managed // and unmanaged ResourceMessages. if (disposing) { // Dispose managed ResourceMessages. if (this._digitalSignature != null) { this._digitalSignature.Dispose(); this._digitalSignature = null; } } // Note disposing has been done. this._isDisposed = true; } }