Using Explicit Arrange,Act,Assert scopes in tests – thoughts?

By Roy Osherove In .NET, .Net 2.0, Agile, Art Of Unit Testing, Silverlight

Markdown version

Historical article · Originally published June 2, 2009; technical details may be outdated.

What are your thoughts on this style of writing?

  • Specifically the “Explicit” way of defining arrange, act and assert scopes.
  • also, given the name of the test, where should the call to “OnApplyTemplate” be (if you’ve never seen the code)?
  • which version makes more sense to you? A, or B?

version A:

image

version B:

image

More in .NET

All posts in .NET