public void TestParseCertificates_WithNonCertificatesEntries_ShouldReturnCetificates() { var certs = new TrustBundleProvider().ParseCertificates(certificatesString + certificatesString + "test"); Assert.AreEqual(certs.Count(), 2); }
public void TestParseCertificates_NoCertificatesEntries_ShouldReturnNoCetificates() { var certs = new TrustBundleProvider().ParseCertificates("test"); Assert.AreEqual(certs.Count(), 0); }
public void TestParseCertificates_MultipleCerts_ShouldReturnCetificates() { var certs = new TrustBundleProvider().ParseCertificates(certificatesString + certificatesString); Assert.AreEqual(certs.Count(), 2); }