testing 1019 B

123456789101112131415161718192021
  1. * Testing
  2. All classes in Mono libraries should have comprehensive unit test
  3. suites to go with them. Unit testing is a software engineering
  4. methodology that makes it easier to build correct code. Every
  5. method in every class should have a set of tests to verify
  6. that they work correctly. Mono also needs a testing framework
  7. to make it easy to write and run lots of tests.
  8. Try <a href="http://nunit.sourceforge.net">NUnit</a>
  9. Why do unit testing? It becomes simple to run automated tests
  10. for the whole library. Unit tests are a safety net - you can
  11. change part of the code and verify that you haven't broken
  12. anything. Ideally, tests are written before the actual library
  13. code itself. And every time a bug is discovered, a test should
  14. be written to demonstrate the bug and its fix. Then, if
  15. you ever reintroduce the bug, you will know immediately. For
  16. more info, read <a
  17. href="http://nunit.sourceforge.net/doc/testinfected/testing.html">
  18. JUnit Test Infected: Programmers Love Writing Tests</a>.