gpt4 book ai didi

.net - xUnit.NET 中的组合数据?

转载 作者:行者123 更新时间:2023-12-04 07:37:41 24 4
gpt4 key购买 nike

我正在从 MbUnit 迁移到 xUnit,并且正在尝试找到与 MbUnit 的 [CombinatorialJoin] 等效的属性(或方法)和 [Column] .

例如,在测试具有多个 bool 参数的函数的常见行为时,[Column]使得测试排列变得非常容易:

public void TestMethodWithTooManyOptions([Column(true, false)] bool dispose,
[Column(true, false)] bool useDestinationStream,
[Column(true, false)] bool useCorruptedSource,
[Column(true, false)] bool loadTwice,
[Column(true, false)] bool useSourceStream) {
[CombinatorialJoin] , [SequentialJoin] , [PairwiseJoin]影响列(或行)的排列方式。

最佳答案

这也许是一个正确的回应......

https://github.com/AArnott/Xunit.Combinatorial

关于.net - xUnit.NET 中的组合数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25768102/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com