public void TestFinishOneFile(int id)
 {
     AssertInitialStates();
     service = new FinishValidFilesStateService(fileInfoList.Where(x => x.FilePath == "path" + id));
     service.Finish();
     for (int i = 0; i < 3; i++)
     {
         Assert.AreEqual(fileInfoList[i].Result, i == id - 1 ? "导入成功" : "未知");
         Assert.AreEqual(fileInfoList[i].CurrentState, i == id - 1 ? "已读取" : "未读取");
     }
 }
 public void TestFinishAllFiles()
 {
     AssertInitialStates();
     service = new FinishValidFilesStateService(fileInfoList);
     service.Finish();
     for (int i = 0; i < 3; i++)
     {
         Assert.AreEqual(fileInfoList[i].Result, "导入成功");
         Assert.AreEqual(fileInfoList[i].CurrentState, "已读取");
     }
 }