Exemplo n.º 1
0
        public void ParseTrustedBundleFromFileRaisesExceptionWithInvalidTBFile()
        {
            string testFile = Path.GetRandomFileName();

            Assert.Throws <ArgumentException>(() => CertificateHelper.ParseTrustedBundleFromFile(null));
            Assert.Throws <ArgumentException>(() => CertificateHelper.ParseTrustedBundleFromFile(string.Empty));
            Assert.Throws <ArgumentException>(() => CertificateHelper.ParseTrustedBundleFromFile("   "));
            Assert.Throws <ArgumentException>(() => CertificateHelper.ParseTrustedBundleFromFile(testFile));
        }