If you write unit tests, you must have known the basic Assert usages, such as Assert.IsTrue, Assert.AreEqual … It is less clear/clean than the fluent expressions. But first you would need to install the package FluentAssertions via the NuGet manager (right click the test project and click the Manage NuGet packages).
Just Install it and the VS will add the required references automatically to your test project. Then you can start enjoy writing unit tests in the following [fluent] manner.
Isn't this cooler? It is much easier to understand each test statement because they are just as easy as plain English sentences. Click To Tweet–EOF (The Ultimate Computing & Technology Blog) —
GD Star Rating
loading...
285 wordsloading...
Last Post: How to Automatically Restart MySQL Server in the event of Crash?
Next Post: Bash Coding Exercise - HandShake