public void TestExcel2img4() { TaskPool.Shared.MaximumConcurrency = 10; ExcelCov cov = new ExcelCov("test\\xx2.xls", "xlsx2-{0}.jpg"); cov.Exec(); cov.PrintFails(); Assert.AreEqual(cov.Result.Count, cov.Result.Files.Count); Assert.AreEqual(0, cov.Fails.Count); }
public void TestExcel2img2() { TaskPool.Shared.MaximumConcurrency = 10; for (var i = 0; i < 5; i++) { ExcelCov cov = new ExcelCov("test\\xx1.xls", "xlsx-d-{0}.jpg"); cov.Exec(); cov.PrintFails(); Assert.AreEqual(cov.Result.Count, cov.Result.Files.Count); Assert.AreEqual(0, cov.Fails.Count); } }