! ! ! ! ! ! ! ! ! ! ! ! ! ! ! (source: http://www.thefreedictionary.com/fluent) UBIQUITOUS LANGUAGE Fluent [ˈfluːənt] adj 1. spoken or written with ease: fluent French. 2. able to speak or write smoothly, easily, or readily: fluent in three languages. 3. smooth; easy; graceful: fluent motion 4. flowing or capable of flowing; fluid ! [from Latin: fluere to flow, stream]
assertions • Independent and compliant with all major .NET test runners • Directly inspired by the awesome Java FEST assert library • Available on IN A FEW WORDS
the NFluent team to add your own assertions on any kind of ‘value’ • The opportunity to use your own ubiquitous language (DSL) from within your tests ! • Some extra candies • Like the Properties extension method for IEnumerable • The HasFieldsWithSameValues(anonymous class) BONUS FEATURES
lambda expression predicates hurts the fluent experience new[] { 1, 2, 3 }.Should().Contain(item => item > 3, "at least {0} item should be larger than 3", 1); • (Red is dead, but) Should is weak… • We aim to be more ambitious in term of fluentness NFLUENT VS. OTHER ASSERTION LIBRARIES?
ERROR) • No StyleCop warning (full rules) • 100% of test coverage - all test passed of course! • The entire build lasts less than a minute (including all unit tests) DEFINITION OF DONE