2

Most unit testing frameworks have a method like Fail, which unconditionally throws an assertion exception.

Does Shouldly have this kind of instruction?

Pawel Gorczynski
  • 1,227
  • 1
  • 15
  • 17
  • Are you using nunit as well? Why not just use Assert.Fail("Something bad happened")? – PMF Feb 14 '18 at 08:15
  • Not in this project, I'm not. If I were, I wouldn't ask this question. – Pawel Gorczynski Feb 14 '18 at 08:38
  • @PawełG. This appears to be an [XY problem](https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem). The question in its current state is also incomplete and therefore unclear. Read [ask] and then [edit] the question to provide a [mcve] that can be used to reproduce the problem, allowing a better understanding of what is being asked. – Nkosi Feb 14 '18 at 10:26
  • @PawełG.: Then remove the nunit tag. – PMF Feb 14 '18 at 11:28

0 Answers0