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); }
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); }