Aca*_*uza 39 .net c# unit-testing naming terminology
我看到很多人都在谈论SUT这个术语,但不明白为什么他们使用这个术语.
SUT是你想要测试的吗?
这个术语来自哪里,它意味着什么?
例如,在这个测试中,我的SUT是什么?
[TestMethod]
public void UsersAction_should_return_IndexAction()
{
const long id = 1;
UsersViewModel viewModel = new UsersViewModel()
{
SelectedUsers = new long[] { 1, 2, 3, 4 }
};
ActionResult result = _controller.Users(id, viewModel);
result.AssertActionRedirect().ToAction("Index");
}
Run Code Online (Sandbox Code Playgroud)
这个词从何而来?
DUT(被测设备)和UUT(被测单元)是测试工程师(非软件测试工程师)中非常常见的缩写。这就是术语 SUT(被测系统)
和 CUT(被测代码)的来源。
相关:
2008 MSDN 博客文章命名 SUT 测试变量。
| 归档时间: |
|
| 查看次数: |
25195 次 |
| 最近记录: |