Questions tagged [context-specification]

2 questions
3
votes
2 answers

How (strategy) to unit test properties (get/set) in BDD style?

I have a class (of many) that have properties. Some have logic in them and some don't. Assuming I want to test these properties, how do I go about doing that? Recently, I've been interested in BDD style for creating unit tests. see here and…
Jiho Han
  • 1,610
  • 1
  • 19
  • 41
0
votes
1 answer

BDD: When/where to setup stubs?

I've been using TDD/SSR for a while. I'm trying to transition to BDD: context, becauseOf, and Asserts. I'm using Rhino Mocks to isolate, and I'm struggling with syntax now. Here's what I've got so far (note: ContextSpecification class…
lance
  • 16,092
  • 19
  • 77
  • 136