U:调整所有代码格式

This commit is contained in:
jimmy committed 2025-12-30 09:17:25 +08:00
1 parent d133bacf55
commit 155b67e831
342 files changed
+9431 -9868

No files matched your search

+8 -11
View File
@@ -118,9 +118,9 @@ public class CollectionExpandTests
// Act
var tree = items.ToTree(
idSelector: x => x.Id,
parentIdSelector: x => x.ParentId,
rootParentId: null
x => x.Id,
x => x.ParentId,
null
);
// Assert
@@ -243,10 +243,7 @@ public class CollectionExpandTests
var processedBatches = new List<int>();
// Act
items.ForEachBatch(10, batch =>
{
processedBatches.Add(batch.Count());
});
items.ForEachBatch(10, batch => { processedBatches.Add(batch.Count()); });
// Assert
Assert.AreEqual(3, processedBatches.Count);
@@ -618,9 +615,9 @@ public class CollectionExpandTests
// Act: 数据清洗流水线
var cleanedData = rawData
.WhereNotNull() // 去除 null
.DistinctBy(x => x) // 去重
.Where(x => x != "D") // 过滤不需要的数据
.WhereNotNull() // 去除 null
.DistinctBy(x => x) // 去重
.Where(x => x != "D") // 过滤不需要的数据
.ToList();
// Assert
@@ -629,4 +626,4 @@ public class CollectionExpandTests
}
#endregion
}
}