Posts mit dem Label Testing werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Testing werden angezeigt. Alle Posts anzeigen

Mittwoch, 10. Juni 2015

"To throw or not to throw": Asserting exceptions on tasks with async/await

For testing exceptional behaviour i like using FluentAssertions Invoking extensions. However, i noticed that using this with async/await seems not to be supported and requires unelegant rewriting (Please, prove me wrong on this). However, using C# 6 await in try-catch this is now very simple to do:

Freitag, 8. Mai 2015

Yes, you can test it (1) - Prerequisites

Before you start with unit testing, you must fulfill one prerequisites ... you need to create a unit. Sounds logic, but what does this mean?