开发者

Full code coverage

开发者 https://www.devze.com 2022-12-09 05:42 出处:网络
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)))

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 t开发者_如何学运维his 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?


Are there perhaps return codes or exceptions from either of the Format() methods that your tests do not currently trigger?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号