Using Moq and TDD, where to start?

后端 未结 4 2190
灰色年华
灰色年华 2021-02-14 10:45

I have a server application and I was wondering where I should start if I want to start implementing TDD and using Moq.

What good books I could read on the subject, wh

4条回答
  •  渐次进展
    2021-02-14 10:52

    One of my favorite books on TDD is Test Driven Development By Example (Kent Beck). I also really liked a 4-part screen cast he did.

    Episode 1: Starter Test (28 minutes)

    In this episode we take the first test for the first feature our sample application and slice it up to provide more-frequent feedback.

    Episode 2: Isolated Tests (23 minutes)

    In this episode we ensure that tests don’t affect each other. Once the tests are isolated we implement several new operations.

    Episode 3: Big Feature (25 minutes)

    In this episode we take a large feature and slice it up to provide more-frequent feedback. At the end we clean the code to remove duplication and make the code easier to read.

    Episode 4: Finishing (20 minutes)

    In this episode we finish the functionality of the sample application and prepare it for use by others. Design decisions that were deferred earlier in development are now clearer. The series closes with a summary of lessons from all of the episodes.

提交回复
热议问题