xunit test patterns refactoring test code phần 10 docx

xunit test patterns refactoring test code phần 10 docx

xunit test patterns refactoring test code phần 10 docx

... Logic defi ned, 10 11, 789 Hard-To -Test Code. See Hard-To -Test Code obscure tests. See Obscure Test Test Code Duplication. See Test Code Duplication Test Logic in Production. See Test Logic in ... 226–227 reducing Test Code Duplication, 114–119 refactoring, xlvi–xlix Self-Checking Tests, 107 108 unit testing, 6 Verify One Condition per Test, 46–47 assumptions, xx...

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

93 257 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 (348): 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. Test...

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

... number for each test. This way, any side effects of one test couldn’t affect any other tests. Given that she had about 100 tests to automate, the systems analyst needed about 100 test customers ... 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 cove...

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 ... separate Test Double Class (see Hard-Coded Test Double). Each of these options is discussed in more detail in Hard-Co...

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. ... 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 9 potx

xunit test patterns refactoring test code phần 9 potx

... Exception()] .NET NUnit 2.1+ [TestFixture] [Suite] [Test] [SetUp] [TearDown] [Test [TestFixture [Expected Fixture TearDown] Exception()] SetUp] .NET MbUnit 2.0 [TestFixture] [Suite] [Test] [SetUp] [TearDown] ... Exception()] .NET MSTest [TestClass] Not [Test [Test [Test [Class [Class [Expected applicable Method] Initialize] Cleanup] Initialize] Cleanup] Exception()] PHP PHPUnit Subclas...

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

95 338 0
w