예제 #1
0
        public void addOrdertest()
        {
            List <Program.Order> testList = new List <Program.Order>();

            Program.Order order = new Program.Order();
            order.Detail.Num = 0;
            testList.Add(order);
            Assert.IsNotNull(testList);
        }
예제 #2
0
        public void ChangeListTest()
        {
            List <Program.Order> testList = new List <Program.Order>();

            Program.Order order = new Program.Order();
            testList.RemoveAt(1);
            order.Detail.Num = 1;
            Assert.IsNull(testList);
            Assert.IsNotNull(testList);
        }
예제 #3
0
        public void SearchListTest()
        {
            List <Program.Order> testList = new List <Program.Order>();

            Program.Order order = new Program.Order();
            order.Detail.CutomerName = "122";
            order.Detail.ProductName = "111";
            order.Detail.Num         = 1;
            Assert.IsNull(testList);
            Assert.IsNotNull(testList);
        }