Beispiel #1
0
 private void cbPermitted_CheckedChanged(object sender, EventArgs e)
 {
     if (((CheckBox)sender).Checked)
     {
         butAddPermitted.Enabled    = true;
         butRemovePermitted.Enabled = true;
     }
     else
     {
         butAddPermitted.Enabled    = false;
         butRemovePermitted.Enabled = false;
         foreach (OSCAGeneralName gn in nc.Permitted)
         {
             nc.Remove(NameConstraintTree.Permitted, gn);
         }
     }
 }
Beispiel #2
0
        public void RemoveTest()
        {
            nameConstraints    target = new nameConstraints(testData1);
            NameConstraintTree Tree   = NameConstraintTree.Permitted;

            target.Remove(Tree, testData2);
            Assert.AreEqual(0, target.Permitted.Count);
        }