Ooooh. It occurs to me that if we also make success a strategy, something wonderful happens. We can write a one-line test like this:
expectFailingBecause("Not true that is inclusively in range ").whenAsserting().that(1).isInclusivelyInRange(2, 4);
It also allows "logging successes", which people have asked from JUnit several times.
Ooooh. It occurs to me that if we also make success a strategy, something wonderful happens. We can write a one-line test like this:
expectFailingBecause("Not true that is inclusively in range ").whenAsserting().that(1).isInclusivelyInRange(2, 4);
It also allows "logging successes", which people have asked from JUnit several times.