Copy() public method

public Copy ( ) : object
return object
Esempio n. 1
0
		public void Copy () 
		{
			X509Certificate x509 = new X509Certificate (msSpCert);
			Publisher p = new Publisher (x509);
			Publisher pCopy = (Publisher) p.Copy ();

			Assert.IsNotNull (pCopy.Certificate, "Copy-Cert");
			Assert.IsTrue (p.Equals (pCopy), "Copy-Equals");
			Assert.AreEqual (p.GetHashCode (), pCopy.GetHashCode (), "Copy-GetHashCode");
			Assert.AreEqual (p.ToString (), pCopy.ToString (), "Copy-ToString");
		}