Listing 4 unit tests illustrate various assert methods to perform positive and negative unit testing. It has the following test methods.
列表4中的单元测试列举了各种断言方法来执行正面与反面的单元测试。
Assertions are the tests and as you will see in the following section, there are a number of assert statements that you can use for Rails application testing.
断言就是测试,正如在下一节中看到的,有许多可以用来测试Rails应用程序的断言语句。
Are heading comments recommended when unit testing with Arrange-Act-Assert?
正建议时,单元测试安排的行为认定的意见?
应用推荐