The first day of learning TDD

What is TDD? (Wikipedia)

Test-driven development ( English: the Test-Driven Development, abbreviated as TDD) is a software development application methods, by the Extreme Programming advocates in their advocacy write the test program, and then encode its function name. Test-driven development began in the 1990s. The purpose of the test-driven development is to obtain rapid feedback and to build programs using the "illustrate the main line" method.

Test-driven development is wearing two hats thinking development approach: Wear a hat to achieve functional, with the aid of the test, the rapid realization of its function; and then put on the reconstruction of the hat, under the protection of the test, by removing redundant code, improve code quality. Driving the test development process: First, the drive to achieve the design and function code; Thereafter, driver code and re-design of reconstruction .

What is relevant Xunit.net?(TDD involved)

Testing one unit with a frame (not found specifically defined). https://www.cnblogs.com/NorthAlan/p/5184462.html in specific introduction to the xUnit.net.

The origin of xUnit.Net: NUnit creator Jim Newkirk announced a new unit testing framework, called xUnit.net. This new framework is the successor to a self-NUnit promise, the author intends to eliminate the mistakes and shortcomings of NUnit, and add some best practices and expansion of capacity in the frame. xUnit.Net is open source GitHub address: https://github.com/xunit/xunit .

Assert the role? (Essay)

Currently assertion of the role I do not know; know the future will summarize.

Assertion is another important function of each unit test framework, and in this regard xUnit.Net simplify a lot of other frameworks slightly repetitive functions. At the same time also provides flexible expansion mode to the user on how to extend xUnit.Net I have the opportunity to detail.

Recommended book: Algorithms Algorithms, Posts & Telecom Press, Jerrodd cloud translation

 

Guess you like

Origin www.cnblogs.com/zyk2019/p/11243944.html