예제 #1
0
        public void LoadTest(string tableName)
        {
            DBLoader loader         = new DBLoader();
            object   result         = loader.Load(tableName);
            IList    expectedResult = (IList)CreateExpectedResultForLoadTest(tableName);
            IList    ilResult       = (IList)result;

            Assert.AreEqual(expectedResult.Count, ilResult.Count);
            for (int i = 0; i < ilResult.Count; ++i)
            {
                Assert.AreEqual(expectedResult[i].GetType(), ilResult[i].GetType());
                Assert.AreEqual(expectedResult[i], ilResult[i]);
            }
        }