示例#1
0
        public void TestLastConnFail()
        {
            setFailConn();
            ACAD food = new CADFood("GebatDataConnectionString");

            food.Last();
        }
示例#2
0
 public void TestLast()
 {
     ACAD food = new CADFood("GebatDataConnectionString");
     DataRow actual = food.Last();
     DataRow expected = food.GetVoidRow;
     expected ["Id"] = 4;
     expected ["Name"] = "Pomes";
     expected ["Quantity"] = 4;
     Assert.AreEqual(expected["Id"], actual["Id"]);
     Assert.AreEqual(expected["Name"], actual["Name"]);
     Assert.AreEqual(expected["Quantity"], actual["Quantity"]);
 }