随笔分类 -  UnitTest

摘要:https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-best-practices 阅读全文
posted @ 2018-11-28 16:09 ChuckLu 阅读(240) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/visualstudio/cross-platform/tools-for-cordova/debug-test/basic-tests-with-jasmine?view=toolsforcordova-2017 https://d 阅读全文
posted @ 2018-06-21 16:31 ChuckLu 阅读(200) 评论(0) 推荐(0) 编辑
摘要:https://github.com/nsubstitute/NSubstitute http://nsubstitute.github.io/help/creating-a-substitute/ NSubstitute完全手册索引 What's the default value will NS 阅读全文
posted @ 2018-05-31 19:30 ChuckLu 阅读(199) 评论(0) 推荐(0) 编辑
摘要:What is mocking? Mocking is a process used in unit testing when the unit being tested has external dependencies. The purpose of mocking is to focus on 阅读全文
posted @ 2018-05-31 19:12 ChuckLu 阅读(216) 评论(0) 推荐(0) 编辑
摘要:Test double - Wikipedia In computer programming and computer science, programmers and developers employ a technique called automated unit testing to e 阅读全文
posted @ 2018-05-31 18:28 ChuckLu 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Test Doubles — Fakes, Mocks and Stubs. | by Michal Lipski | Pragmatists This text was originally posted at Pragmatists blog In automated testing it is 阅读全文
posted @ 2018-02-06 19:08 ChuckLu 阅读(400) 评论(0) 推荐(0) 编辑
摘要:先上代码 单元测试一般都是基于接口的,比如Isys_systemInfoService TestInitialize初始化的时候执行的函数 TestMethod待测试的方法 阅读全文
posted @ 2016-03-29 11:25 ChuckLu 阅读(224) 评论(0) 推荐(0) 编辑
摘要:在VS的菜单栏上,Test-->Windows-->TestExplorer 在TestExplorer的最下方,有一个Output 查看测试结果,使用了Console.WriteLine 出现异常的时候,在提示窗口,右键,选择Copy All Test Name: DeleteSystemInfo 阅读全文
posted @ 2016-03-29 11:17 ChuckLu 阅读(1010) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/ms182532.aspx 阅读全文
posted @ 2016-01-12 10:11 ChuckLu 阅读(137) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/hh598957.aspxUnit tests often mirror the structure of the code under test.For example, a unit test project wo... 阅读全文
posted @ 2016-01-12 09:37 ChuckLu 阅读(308) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/ms182470.aspx Running Automated Tests in Visual Studio Visual Studio provides different ways to run tests. Yo 阅读全文
posted @ 2016-01-12 09:17 ChuckLu 阅读(327) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示