Unit Testing

A unit test verifies that a single unit of work, usually a class method, works correctly. Unit tests should generally avoid accessing the file system, database, or network resources. Types requiring this kind of access ideally rely on an abstracted API and have the types used in production substituted with stubs or mock types during testing. Unit tests should execute rapidly and cause no side effects that affect other unit tests.

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.