Exemplo n.º 1
0
        public void fipsCAConstructorTest()
        {
            fipsCA ca = new fipsCA(CaTestHarness.testCAConfigFile);

            Assert.IsTrue(ca.FIPS140Mode);
            //Assert.AreEqual("RootCA", ca.CAType);
            Assert.AreEqual("SHA1withRSA", ca.SignatureAlgorithm);
        }
Exemplo n.º 2
0
 public void fipsCAConstructorTest1()
 {
     try
     {
         fipsCA ca = new fipsCA(@"c:\foo.xml");
     }
     catch (IOException ex)
     {
         Assert.AreEqual(@"Could not find file 'c:\foo.xml'.", ex.Message);
     }
 }