public void TestLastConnFail() { setFailConn(); ACAD food = new CADFood("GebatDataConnectionString"); food.Last(); }
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"]); }