TDD with C#


What is a unit test?


A unit test is an automated piece of code that invokes a unit of work in the system and then checks a single assumption about the behavior of that unit of work.


http://artofunittesting.com/definition-of-a-unit-test/


What makes for a 

'good' unit test?


  • It's independent
  • It's repeatable (idempotent) 
  • It's atomic (only tests one thing)
  • Automatic
  • Runs fast



Test-Driven Development





References



Te gustó?


Puedes descargar el código de esta presentación y contribuir/ampliar los ejemplos:

https://github.com/amhed/bcsti-domino-test
Made with Slides.com