public void crlDistPointConstructorTest() { crlDistPoint target = new crlDistPoint(); Assert.IsFalse(target.Critical); Assert.AreEqual("CrlDistributionPoints", target.Name); Assert.AreEqual("CRL Distribution Points", target.DisplayName); }
public void AddTest() { crlDistPoint target = new crlDistPoint(true); OSCAGeneralName Name = testInputGeneralName1; target.Add(Name); Assert.AreEqual(testInputGeneralName1, target.DistPoints[0]); }
public void RemoveTest() { crlDistPoint target = new crlDistPoint(testInputXml); OSCAGeneralName Name = testInputGeneralName1; target.Remove(Name); Assert.AreEqual(1, target.DistPoints.Count); }
public void CrlDistributionPointTest() { crlDistPoint target = new crlDistPoint(testInputXml); CrlDistPoint actual; actual = target.CrlDistributionPoint; Assert.IsInstanceOfType(actual, typeof(CrlDistPoint)); }
public void DistPointsTest() { crlDistPoint target = new crlDistPoint(testInputXml); List <OSCAGeneralName> actual; actual = target.DistPoints; Assert.AreEqual(testInputGeneralName1, actual[0]); }
public void crlDistPointConstructorTest2() { XElement xml = testInputXml; crlDistPoint target = new crlDistPoint(xml); Assert.IsTrue(target.Critical); Assert.AreEqual("CrlDistributionPoints", target.Name); Assert.AreEqual("CRL Distribution Points", target.DisplayName); }
public void crlDistPointConstructorTest1() { bool Critical = true; crlDistPoint target = new crlDistPoint(Critical); Assert.IsTrue(target.Critical); Assert.AreEqual("CrlDistributionPoints", target.Name); Assert.AreEqual("CRL Distribution Points", target.DisplayName); }
public void ToXmlTest() { crlDistPoint target = new crlDistPoint(testInputXml); XNode expected = testInputXml; XNode actual; actual = target.ToXml(); Assert.AreEqual(expected.ToString(), actual.ToString()); }
// Load an existing extension private void edit(crlDistPoint cdp) { crlDP = cdp; // Populate the dataset for (int i = 0; i < cdp.DistPoints.Count; i++) { updateDataSet(cdp.DistPoints[i], i); } // critical setting if (crlDP.Critical) { cbCritical.Checked = true; } else { cbCritical.Checked = false; } }
public CrlDistributionPoint(crlDistPoint cdp) { InitializeComponent(); // Setup the dataset ds.Tables.Add("generalNames"); ds.Tables["generalNames"].Columns.Add("DP"); ds.Tables["generalNames"].Columns.Add("Type"); ds.Tables["generalNames"].Columns.Add("Name"); // Setup the grid dgv.DataSource = ds.Tables["generalNames"]; if (cdp == null) { create(); } else { edit(cdp); } }
// Create a new extension private void create() { crlDP = new crlDistPoint(); }