public void DBGoodTypeConstructorTest() { DBGoodType target = new DBGoodType(connstr); Assert.IsNotNull(target); // Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
/// <summary> ///GetGoodType_DRToModelDTToList 的测试 ///</summary> //[Test] public void GetGoodType_DRToModelDTToListTest() { //string ConnectionString = string.Empty; // TODO: 初始化为适当的值 DBGoodType target = new DBGoodType(connstr); // TODO: 初始化为适当的值 DataRow dr = null; // TODO: 初始化为适当的值 //LendingType expected = null; // TODO: 初始化为适当的值 //LendingType actual; //actual = target.GetGoodType_DRToModelDTToList(dr); //Assert.AreEqual(expected, actual); //Assert.Inconclusive("验证此测试方法的正确性。"); }
public void GetGoodTypeTest() { DBGoodType target = new DBGoodType(connstr); // TODO: 初始化为适当的值 //List<LendingType> expected = null; // TODO: 初始化为适当的值 // Methods m = new Methods(); List <LendingType> actual; actual = target.GetGoodType(); Assert.IsNotNull(actual); Assert.AreEqual(2, actual.Count); // Assert.Inconclusive("验证此测试方法的正确性。"); }