예제 #1
0
        public void AListMax16Test()
        {
            var a = new AList1 <Person>();

            a.Init(mas);
            Person res = a.Max();

            Assert.AreEqual(16, res.ID);
        }
예제 #2
0
        public void AListMax16Test()
        {
            int[] mas = new int[16] {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
            };
            var a = new AList1 <int>();

            a.Init(mas);
            int res = a.Max();

            Assert.AreEqual(16, res);
        }
예제 #3
0
 public void AList1_Max_Value_error()
 {
     Assert.AreEqual(9, aList1.Max());
 }