如何通过TestInitialize中的测试? [英] How do I pass a test in TestInitialize?

查看:118
本文介绍了如何通过TestInitialize中的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TestInitialize期间,我检查了一些前提条件,如果它们不正确,我会使用

During TestInitialize I check some pre conditions and if they are false I use

Assert.Inconclusive

但是我想通过测试,但是没有Assert.Pass()

However I would like pass the test but there is no Assert.Pass()

我将如何通过TestInitialize进行此操作?

How would I go about doing this from TestInitialize?

谢谢

科林

推荐答案

您可以使用

Assert.IsTrue(true);

Assert.IsTrue(true);

谢谢

Anuj


这篇关于如何通过TestInitialize中的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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