public void Find_ReturnsNotFoundWhenCertificateDoesNotExist() { var sut = new CertificateFinder(); var result = sut.Find(X509FindType.FindByThumbprint, "somethingthatdoesnotexist"); Assert.False(result.Found); }
public void Find_FindsAStoredCertificateByThumbprint() { var certificate = CreateCertificateIn(StoreName.My, StoreLocation.CurrentUser); var sut = new CertificateFinder(); var result = sut.Find(X509FindType.FindByThumbprint, certificate.Thumbprint); Assert.True(result.Found); }