private void butAddPermitted_Click(object sender, EventArgs e) { GetName getname = new GetName(permittedTypes); if (getname.ShowDialog() == DialogResult.OK) { nc.Add(NameConstraintTree.Permitted, getname.gn); updateDataSet("permitted", getname.gn, nc.Permitted.Count - 1); } }
public void ToStringTest() { nameConstraints target = new nameConstraints(true); NameConstraintTree Tree = NameConstraintTree.Permitted; target.Add(Tree, testData2); Assert.AreEqual(testData4, target.ToString()); }
public void AddTest() { nameConstraints target = new nameConstraints(true); NameConstraintTree Tree = NameConstraintTree.Permitted; target.Add(Tree, testData2); Assert.AreEqual(testData2, target.Permitted[0]); }