Ben Foster 3/1/2019

NSpec conventions

Read Original

This article details the convention-based design of NSpec, a BDD testing framework for .NET. It explains how to structure tests using steps like Context, Before, Act, It, and After, and demonstrates how to declare these steps via helper methods or C# naming conventions. The post covers setup/cleanup methods, shared 'act' steps to reduce duplication, and shows how these conventions produce readable test output.

NSpec conventions

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week