public void SaveAndRestoreForTests() { // the save/restore functionality is used during unit tests. EcdhBC ecdh1 = new EcdhBC(); EcdhBC ecdh2 = new EcdhBC(ecdh1.GetBlob()); Assert.Equal(ecdh1.PublicKey, ecdh2.PublicKey); }