public void VerifyCertDeletionExactSubjectMatch() { var subName = "TestCert_5"; var store = "ROOT"; StoreLocation storeLocation = StoreLocation.LocalMachine; DateTime dt = DateTime.MinValue; CertificateManager.GenerateSelfSignedCertAndImportToStore(subName, store, storeLocation, null, dt); CertificateManager.DeleteCertificateFromStore(subName, store, storeLocation, true); bool result = VerifyCertExistsAndDelete(subName, store, storeLocation); Verify.IsFalse(result, string.Format("Delete Cert with parameters: {0}, {1}, {2}", subName, store, storeLocation)); }