如何使用MSTest进行RowTest? [英] How to RowTest with MSTest?

查看:87
本文介绍了如何使用MSTest进行RowTest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道MSTest不支持RowTest和类似的测试.

I know that MSTest doesn't support RowTest and similar tests.

MSTests用户做什么?没有RowTest支持怎么生活?

What do MSTests users do? How is it possible to live without RowTest support?

我已经看过DataDriven测试功能,但听起来开销太大,是否有任何第三方补丁或工具可以让我在MSTest中进行RowTest类似测试?

I've seen DataDriven test features but sounds like too much overhead, is there any 3rd party patch or tool which allow me to do RowTest similar tests in MSTest?

推荐答案

[TestMethod]
Test1Row1
{
    Test1(1,4,5);
}

[TestMethod]
Test1Row2
{
    Test1(1,7,8);
}

private Test1(int i, int j, int k)
{
   //all code and assertions in here
}

这篇关于如何使用MSTest进行RowTest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆