Exemplo n.º 1
0
        public void TestNameS1()
        {
            person p, p1;
            People all = new People();

            p = new person("Annn", 18, 90, 180);
            all.People_add(p);
            p1 = new person("Van", 18, 90, 180);
            all.People_add(p1);
            string s = all.Sort("V");

            Assert.AreEqual(s, "Van");
        }
Exemplo n.º 2
0
        public void TestT3()
        {
            person p;
            People all = new People();

            p = new person("Annn", 18, 90, 180);
            all.People_add(p);
            string s = all.Age_Weig(p);

            Assert.AreEqual(s, "выше среднего");
        }
Exemplo n.º 3
0
        public void TestT()
        {
            person p;
            People all = new People();

            p = new person("Annn", 18, 80, 180);
            all.People_add(p);
            string s = all.Age_Weig(p);

            Assert.AreEqual(s, "нормально");
        }