- 1
- 0
- 约1.27千字
- 约 62页
- 2022-08-26 发布于安徽
- 举报
Outline;The Value of Self-Testing Code;Automated Testing is Necessary;How Tests Support S/W Development;Automated Testing is Hard -- Fragile Tests;xUnit ;A Holistic View ;Test Runner;;Test Results;Runtime Test Structure;Test Fixture;Test Fixture in General;Software Test Fixture;Fresh Fixture Strategy;In-line Fixture Setup;In-line Fixture Setup;Delegated Setup;;Variations of Creation Method;Motivating Example;22;23;24;Fixture Teardown;Garbage-Collected Teardown;Automated Exercise Teardown;Fixture Teardown Variations;;Results Verification;State Verification ;Example – Procedural State Verification;Example – Expected Object;Behavior Verification;Example;Example – Procedural Behavior Verification;Example – Expected Behavior Specification;Delta Assertion;Example;Example – Delta Assertion;Test Doubles;Test Double;Test Double;Implementation Alternatives;Indirect Input -- Test Stub;Example;Example – Responder (as Hand-Coded Test Stub);Example – Saboteur (as Anonymous Inner Class);Indirect Output -- Test Spy and Mock Object;Example – Procedural Behavior Verification with Test Spy;Example – Expected Behavior Specification with Mock Object;52;Test Organization;;Test Suite Example;;57;Summary;New River Gorge Bridge;xUnit Test Framework;References;Thank you!
原创力文档

文档评论(0)