Quantcast
Viewing latest article 9
Browse Latest Browse All 20

Commented Issue: Add Because() extension [5345]

The syntax with the title (or message in MSTest) in the should looks a bit strange to me. In MSTest I get asserts which looks like this:

viewModel.IsBusy.Should("because it should be set to false to indicate that the model is no longer busy").Be.False();

I think it would look better when I could write

viewModel.IsBusy.Should().Be.False().Because("it should be set to false to indicate that the model is no longer busy");

Anybody agree with this, or not?
Comments: full aggreement, would be nice to see that.

Viewing latest article 9
Browse Latest Browse All 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>