public void SelectConnFail() { setFailConn(); ACAD food = new CADType("GebatDataConnectionString"); List <object> ids = new List <object>(); ids.Add(2); food.Select(ids); }
public void SelectInvalidNumberId() { List <object> ids = new List <object>(); ids.Add("hola"); ids.Add(3); ACAD food = new CADType("GebatDataConnectionString"); food.Select(ids); }
public void TestSelectOne() { string expected = "Kg"; ACAD food = new CADType("GebatDataConnectionString"); List <object> ids = new List <object>(); ids.Add((int)1); DataRow actual = food.Select(ids); Assert.AreEqual(actual["Name"].ToString(), expected); }
public void Select() { ACAD food = new CADType("GebatDataConnectionString"); List <object> ids = new List <object>(); ids.Add(1); DataRow actual = food.Select(ids); DataTable table = tableFormat; DataRow expected = table.NewRow(); expected["Id"] = 1; expected["Name"] = "Kg"; Assert.AreEqual(expected["Id"], actual["Id"]); Assert.AreEqual(expected["Name"], actual["Name"]); }
public void SelectVoidList() { ACAD food = new CADType("GebatDataConnectionString"); food.Select(null); }