Ejemplo n.º 1
0
        public void TestAdd()
        {
            TestDict t = new TestDict();

            t.Add("hello");
            t.Add("he");
            t.Add("He");
            Assert.AreEqual(2, t.Count);
        }
Ejemplo n.º 2
0
        public void TestLookup()
        {
            TestDict t = new TestDict();

            t.Add("hello");
            t.Add("he");
            t.Add("He");
            Assert.IsFalse(t.LookUp("h"));
            Assert.IsTrue(t.LookUp("HE"));
            Assert.IsTrue(t.LookUp("he"));
            Assert.IsFalse(t.LookUp("hel"));
            Assert.IsFalse(t.LookUp("hell"));
            Assert.IsTrue(t.LookUp("Hello"));
        }
Ejemplo n.º 3
0
 public ConfigRoot SetDict(TestDict value) { this.dict = value; return this; }