xunit test patterns refactoring test code phần 8 docx

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. ... Utility Method_1 Test Utility Method_2 Testcase Class testMethod_1 testMethod_n Fixture SUT Test Helper Test Utility Method_1 Test Utility Method_2 Test Helper Test...

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

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

xunit test patterns refactoring test code phần 1 pps

... hold any Test Utility Methods we want to reuse in several tests. Test Hook (709): We modify the SUT to behave differently during the test. Test Method (3 48) : We encode each test as a single Test ... SUT depends with a test- specifi c equivalent.” Test Enumeration (399): The test automater manually writes the code that enumerates all tests that belong to the test suite. Te...

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 ... lot of Test Code Duplication, we can extract a Parameterized Test (page 607) or put the input val- ues and the expected results into a fi le read by a Data-Driven Test (page 288 )....

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

95 244 0
xunit test patterns refactoring test code phần 5 doc

xunit test patterns refactoring test code phần 5 doc

... 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 Double Layer Test Layer...

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

95 228 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 5 68) for more information. Test Stub Test Stub Simpo PDF Merge and Split Unregistere...

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

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

xunit test patterns refactoring test code phần 9 potx

... (page 6 78) or Dependency Lookup (page 686 ). In this situation, we use a Test Hook because we have no other way to address the Untested Code (see Production Bugs on page 2 68) caused by a Hard-Coded Dependency ... Exception()] .NET NUnit 2.1+ [TestFixture] [Suite] [Test] [SetUp] [TearDown] [Test [TestFixture [Expected Fixture TearDown] Exception()] SetUp] .NET MbUnit 2.0 [TestFixtur...

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

... xli–xlii writing tests, 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 Obscure Test Test Code Duplication. ... 226–227 commercial recorded tests refactored, 283 – 284 tools, 282 – 283 common location, Test Discovery, 397–3 98 Communicate Intent defi ned, 41 refactorin...

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

93 257 0
w