Ejemplo n.º 1
0
        public void testSetValue()
        {
            t.setValue("car", 23);
            t.setValue("care", 24);
            t.setValue("carp", 25);
            t.setValue("carry", 26);

            if ((int)t.getValue("care") != 24)
            {
                throw new System.Exception();
            }
            if ((int)t.getValue("carp") != 25)
            {
                throw new System.Exception();
            }
            if ((int)t.getValue("car") != 23)
            {
                throw new System.Exception();
            }
            if ((int)t.getValue("carry") != 26)
            {
                throw new System.Exception();
            }
        }