示例#1
0
        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);
            }
        }
示例#2
0
        public void ToStringTest()
        {
            nameConstraints    target = new nameConstraints(true);
            NameConstraintTree Tree   = NameConstraintTree.Permitted;

            target.Add(Tree, testData2);
            Assert.AreEqual(testData4, target.ToString());
        }
示例#3
0
        public void AddTest()
        {
            nameConstraints    target = new nameConstraints(true);
            NameConstraintTree Tree   = NameConstraintTree.Permitted;

            target.Add(Tree, testData2);
            Assert.AreEqual(testData2, target.Permitted[0]);
        }