KoffeeKoder



    • by Ben Scheirman on 1/6/2009 9:16:22 AM
    • AAA means Arrange, Act, Assert... you are barely doing that, where your asserts are being defined above the Act...

      You should instead put the Stubs at the top for return values and then do _view.AssertWasCalled(x=>x....);


      It leads to much nicer tests. See my post on the subject here:
      http://flux88.com/blog/the-transition-from-tdd-to-bdd/
    • by Mohammad Azam on 1/6/2009 10:08:06 AM
    • Thanks for the correction Ben!