Unit Testing Examples

can anyone …

Please share any unit testing examples … i am new to this unit testing … please share your unit testing code … in unit testing we will write code for both models and controllers or only models ? please share your code

This isn’t much help but some of the responses might get you going in the right direction: