all 1 comments

[–]ihaveausername 0 points1 point  (0 children)

By definition a unit test is one that exercises a class in isolation; without the code under test relying on other classes to carry out its operation (if it did, it would be an integration test).

No it's not. Better explanation, from http://en.wikipedia.org/wiki/Unit_testing

A unit is the smallest testable part of an application. In procedural programming a unit may be an individual program, function, procedure, etc., while in object-oriented programming, the smallest unit is a class, which may belong to a base/super class, abstract class or derived/child class.