Roy Osherove

View Original

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

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