摘要:
很多时候测试方法的时候需要创建一些测试数据,平时我都是自己手写的, 今天发现了一个可以创建模拟数据的轮子Bogus,下面看看怎么使用的 首先引用Nuget包 github : bchavez/Bogus: A simple fake data generator for C#, F#, and VB 阅读全文
摘要:
速度可能有点慢,毕竟使用的是反射。。。 分组效果 代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Linq.Expressions; 5 using System.R 阅读全文
摘要:
效果如下 后台代码 1 using Microsoft.Toolkit.Mvvm.ComponentModel; 2 using System; 3 using System.Collections.Generic; 4 using System.Collections.ObjectModel; 5 阅读全文