public void fipsCAConstructorTest() { fipsCA ca = new fipsCA(CaTestHarness.testCAConfigFile); Assert.IsTrue(ca.FIPS140Mode); //Assert.AreEqual("RootCA", ca.CAType); Assert.AreEqual("SHA1withRSA", ca.SignatureAlgorithm); }
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); } }