示例#1
0
        public void TestGetAllCodes()
        {
            List <CodeInfo>     codes = CsvUtils_Code.Load(TestCaseManager.GetTestCasePath(GetType(), "Codes"));
            CacheUtils_CodeInfo cache = new CacheUtils_CodeInfo(codes);

            List <CodeInfo> newcodes = cache.GetAllCodes();

            AssertUtils.AssertEqual_List("Codes", GetType(), newcodes);
        }
示例#2
0
        public void TestGetAllCodesByVariety()
        {
            List <CodeInfo>     codes = CsvUtils_Code.Load(TestCaseManager.GetTestCasePath(GetType(), "Codes"));
            CacheUtils_CodeInfo cache = new CacheUtils_CodeInfo(codes);

            List <CodeInfo> newcodes = cache.GetCodesByCatelog("m", 20160101);

            //AssertUtils.PrintLineList(newcodes);
            AssertUtils.AssertEqual_List("Codes_M_20160101", GetType(), newcodes);
        }