xunit test patterns refactoring test code phần 7 potx

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 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 (70 9): 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. Tes...

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 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

... reference to the Test Suite Object (page 3 87) we wish to decorate and then pass our Decorator to the Test Runner (page 377 ). When it is time to Testcase Object Testcase Object Fixture SUT TestSuite Object Inline ... garbage-collected } Refactoring Notes These tests contain a fair amount of Test Code Duplication. We can remove this duplication by refactoring this Testcase Cl...

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

95 203 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

... SetUp] .NET MbUnit 2.0 [TestFixture] [Suite] [Test] [SetUp] [TearDown] [Fixture [Fixture [Expected Setup] Teardown] Exception()] .NET MSTest [TestClass] Not [Test [Test [Test [Class [Class [Expected ... http://www.simpopdf.com 73 0 Chapter 27 Value Patterns a trivial instance of it or we may need to create an instance of a Test- Specifi c Subclass (page 579 ) within our test. Some...

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, 78 9 Hard-To -Test Code. See Hard-To -Test Code obscure tests. See Obscure Test Test Code Duplication. ... 110 asynchronous tests defi ned, 78 7 Hard-To -Test Code, 210–211 Humble Object, 696–6 97 Slow Tests, 255–256 testability, 70 71 Attachment Method defi ned, 41...

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

93 257 0
w