By writing the tests first—before the code—you are compelled to state the context in which your functionality will run, the way it will interact with the client code, and the expected results.
在编码之前先写测试强迫你申明函数运行的环境,以及与客户代码交流的方法, 以及渴望的结局。
By writing the tests first—before the code—you are compelled to state the context in which your functionality will run, the way it will interact with the client code, and the expected results.
在编码之前先写测试强迫你申明函数运行的环境,以及与客户代码交流的方法, 以及渴望的结局。
应用推荐