05 2015 档案
摘要:有的时候我们需要对Razor最后生产的文本(HTML OR XML OR..)进行单元测试。使用Nuget安装RazorEngine。新建一个ASP.NET MVC项目,并且带有测试项目。修改Index.cshtml@using TestRazor.Models@model TestModelThi...
阅读全文
摘要:If you want to unit test a private method, something may be wrong. Unit tests are (generally speaking) meant to test the interface of a class, meaning...
阅读全文