A unit test is an automated test that exercises a single unit of production code — a function, a method, a class — in isolation from its collaborators, and asserts on its observable result.
A unit test is an automated test that exercises a single unit of production code — a function, a method, a class — in isolation from its collaborators, and asserts on its observable result.