增加Progress的IsFinished函数;修改解压ZIP的重试逻辑以及中途取消解压的参数

This commit is contained in:
HerobrineXia committed 2026-07-27 12:55:01 +08:00
1 parent 41f44afd9f
commit ddad46e30d
5 files changed
+35 -29

No files matched your search

+2 -2
View File
@@ -21,11 +21,11 @@ public class TaskUtilsTest : TestBase {
], progress);
await Assert.That(ReferenceEquals(firstProgress, secondProgress)).IsFalse();
await Assert.That(progress.GetIncrement()).IsEqualTo(0.5);
await Assert.That(progress.GetIncreasing()).IsEqualTo(0.5);
continueSecond.SetResult(null);
var results = await whenAll;
await Assert.That(string.Join(",", results)).IsEqualTo("1,2");
await Assert.That(progress.GetIncrement()).IsEqualTo(1);
await Assert.That(progress.GetIncreasing()).IsEqualTo(1);
}
}