xunit test patterns refactoring test code phần 5 doc

xunit test patterns refactoring test code phần 5 doc

xunit test patterns refactoring test code phần 5 doc

... interfaces DOC Layer n LayernTestcaseClass testMethod_1 testMethod_2 Layer1TestcaseClass testMethod_1 testMethod_2 Layer 1 Test Double Test Double DOC Layer n LayernTestcaseClass testMethod_1 testMethod_2 Layer1TestcaseClass testMethod_1 testMethod_2 Layer ... n LayernTestcaseClass testMethod_1 testMethod_2 Layer1TestcaseClass testMethod_1 testMethod_2 Layer 1 Test Double Test Dou...

Ngày tải lên: 14/08/2014, 01:20

95 228 0
xunit test patterns refactoring test code phần 1 pps

xunit test patterns refactoring test code phần 1 pps

... under test (SUT) as they occur and compare them to the expected behavior. Chained Tests ( 454 ): We let the other tests in a test suite set up the test fi xture. Confi gurable Test Double (55 8): ... . . . 154 Test Methods and Testcase Classes . . . . . . . . . . . . . . . . . . . . . . . . 155 Testcase Class per Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155...

Ngày tải lên: 14/08/2014, 01:20

95 260 0
xunit test patterns refactoring test code phần 4 pps

xunit test patterns refactoring test code phần 4 pps

... including Infrequently Run Tests or Untested Code. The latter problem may result from Missing Unit Tests or Lost Tests. By specifying that “enough tests” be run, we mean the test coverage should be ... published on test smells and refactoring test code. The four sen- sitivities were fi rst described in [ARTRP], which also described several ways to avoid Fragile Tests in Recorded T...

Ngày tải lên: 14/08/2014, 01:20

95 244 0
xunit test patterns refactoring test code phần 6 ppsx

xunit test patterns refactoring test code phần 6 ppsx

... garbage-collected } Refactoring Notes These tests contain a fair amount of Test Code Duplication. We can remove this duplication by refactoring this Testcase Class to use Implicit Setup. There are two refactoring ... extends TestSetup { private FlightManagementTestHelper helper = new FlightManagementTestHelper(); public ParameterizedFlightManagementTestSetup( Test testSuit...

Ngày tải lên: 14/08/2014, 01:20

95 203 0
xunit test patterns refactoring test code phần 7 potx

xunit test patterns refactoring test code phần 7 potx

... Double Test Double Mock Object Test Spy Dummy Object Test Stub Fake Object Hard-Coded Test Double Configurable Test Double Test Double Mock Object Test Spy Dummy Object Test Stub Fake Object Hard-Coded Test Double Test Double Test Double Simpo ... Hard-Coded Test Double (page 56 8) for more information. Test Stub Test Stub Simpo PDF Merge and Split Unregister...

Ngày tải lên: 14/08/2014, 01:20

95 298 0
xunit test patterns refactoring test code phần 8 docx

xunit test patterns refactoring test code phần 8 docx

... Variation: Test Utility Test One major advantage of using Test Utility Methods is that otherwise Untestable Test Code (see Hard-to -Test Code on page 209) can now be tested with Self- Checking Tests. ... Calculator(); TestValues[] testValues = { new TestValues(1,2,3), new TestValues(2,3 ,5) , new TestValues(3,4,8), // special case! new TestValues(4 ,5, 9) }; for (int i =...

Ngày tải lên: 14/08/2014, 01:20

95 237 0
xunit test patterns refactoring test code phần 9 potx

xunit test patterns refactoring test code phần 9 potx

... we use a Test Hook because we have no other way to address the Untested Code (see Production Bugs on page 268) caused by a Hard-Coded Dependency (see Hard-to -Test Code on page 209). DOC SUT Usage Exercise If Testing? No Production Logic Test- Specific Logic Setup Exercise Verify Teardown If Testing? Yes No Production Logic Test- Specific Logic Yes DOC SUT Usage Exercise If Te...

Ngày tải lên: 14/08/2014, 01:20

95 338 0
xunit test patterns refactoring test code phần 10 docx

xunit test patterns refactoring test code phần 10 docx

... Index capacity tests, 52 Capture/Playback Test. See Recorded Test Chained Test customer testing, 6 examples, 459 –460 implementation, 456 – 457 motivating example, 457 – 458 overview, 454 – 455 refactoring, 458 Shared ... 27–29 code smells Conditional Test Logic. See Conditional Test Logic defi ned, 10–11, 789 Hard-To -Test Code. See Hard-To -Test Code obscure tests. See...

Ngày tải lên: 14/08/2014, 01:20

93 257 0
w