Progress 的子项自动兼容

This commit is contained in:
龙腾猫跃 committed 2026-06-28 04:40:49 +08:00
1 parent 0bdeb20c0e
commit 251061c8eb
3 files changed
+86 -28

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ public class ProgressTest : TestBase {
sub.Set(0.5);
sub.Set(0.5);
await Assert.That(changedCount).IsEqualTo(2);
await Assert.That(changedCount).IsEqualTo(1);
}
[Test]
@@ -52,7 +52,7 @@ public class ProgressTest : TestBase {
using (var observer = new ProgressObserver(progress, value => {
updateCount++;
updatedProgress = value;
}, TimeSpan.FromHours(1))) {
}, TimeSpan.FromHours(1).TotalMilliseconds)) {
progress.Set(0.25);
await Assert.That(updateCount).IsEqualTo(1);