完整的代码覆盖率
我正在尝试获取以下代码行的完整代码覆盖率...
stringWriter.Write(HtmlEncodedString.Format(string.Format("{0,-10:C}", x + y)))
这一行上面的行显示为完全覆盖,并且只是写出一个字符串,但这一行仅显示为部分覆盖。
有人知道如何使这条线完全覆盖吗?
I'm trying to obtain full code coverage for the following line of code...
stringWriter.Write(HtmlEncodedString.Format(string.Format("{0,-10:C}", x + y)))
The line above this one is showing as fully covered and is just writing out a string but this one is only showing as partially covered.
Anybody have any ideas how I can make this line fully covered?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是否存在您的测试当前未触发的 Format() 方法的返回代码或异常?
Are there perhaps return codes or exceptions from either of the Format() methods that your tests do not currently trigger?