Thursday May 5th

Wednesday May 4th

Learn the new NUnit 2.4 Constraint-Based Assert Model

Instead of using a different Assert method for each different type of assertion (e.g.: Assert.AreEqual() for equality comparison, or Assert.IsTrue() for boolean evaluation), the new Constraint-Based Assert Model introduced in NUnit 2.4 utilizes only one Assert method named Assert.That().


Nice article, I wasn't aware of this but like those fluent interfaces and the way the code looks like when they are used.

Thanks! I like the way they architected the "Is" vs "Is.Not" in the syntax helpers.

FWIW, in looking at their source code, they utilize an internal Stack to implement operators such as "No" and "All" -- in the ConstraintBuilder class).

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network