单元测试:TEST Fixture 或 TEXT Fixture
我正在读一本书 Microsoft .NET:为企业构建应用程序迪诺·埃斯波西托。
在第 3 章中,它讨论了单元测试,并说“首先将相关测试分组到文本固定装置中。文本固定装置只是特定于测试的类,其中方法通常代表要运行的测试。”
它一遍又一遍地提到文本固定装置,所以它不可能是拼写错误。
这本书的意思是“测试装置”吗?或者这是两个不同的事情?
I'm reading a book Microsoft .NET: Architecting Applications for the Enterprise by Dino Esposito.
In chapter 3 it talks about Unit testing and says "You start by grouping related tests in a text fixture. Text fixtures are just test-specific classes where methods typically represent tests to run."
It mentions text fixtures over and over again, so it can't be a typo.
Does the book mean "test fixtures"? Or are these two separate things?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这绝对是我们书上犯的错误,三个人都抓不住!
It's definitely an error we made in the book, and three people couldn't catch it!
我想说这只能是一个拼写错误,应该读作“测试装置”。
我确信这本 优秀的 C# 单元测试书籍 所以问题会给你带来一本好书阅读。
I would say it can't be anything else but a typo and should read "test fixture".
I'm sure this Good C# Unit testing book SO question will get you a good book to read.
测试装置是我听说过的唯一一个。
“测试夹具”一定是拼写错误。
Test fixture is the only one that I ever heard of.
"Test fixture" must be a typo.
这是一个错字。当我指的是测试时,我总是发现自己在写文本。我想迪诺也有同样的烦恼。
It is a typo. I am always catching myself writing Text when I mean Test. I guess Dino has the same affliction.
如果这是一个拼写错误,那么这就是集体错误输入/自动完成错误的奇怪情况。 Google 带着大量点击回来了。它肯定指的是同一件事,所以无论哪种方式,我认为这都回答了同样的问题。我想说“文本固定装置”是不正确的,即使它是故意使用的。
If it's a typo, then it is a weird case of collective mistyping/auto complete errors ever. Google comes back with loads of hits. It's certainly referring to the same thing though so either way i think that answers the same question. I would say "text fixture" is incorrect though even if it used deliberately.