Why unit test:
Unit testing is the ultimate beneficiary of our own.
The purpose of the design:
Not to get some better overall quality, it said, it is not one for the end user, project manager and head of development tools; but to be completed by the programmers themselves, and the ultimate beneficiaries are also members themselves.
Unit testing is a piece of code developers to write, very clear function is used to detect a very small code under test is correct.
Unit testing is to prove that the behavior of a piece of code does and developers expect the same.
Unit testing is like a document that can be executed, indicating the calling code when you use a variety of conditions, you can expect this code to complete the function.
The ultimate goal of unit testing is to make our job easier, rather than a burden.
We must remember that in the process of writing a simple readable, reusable, covering most of its core function.