IC窗口
community.icburner.com

Browse by Tags

  • Beginning Mocking With Moq 3

    Part 1 While I was at the ALT.NET and MVP summits, the one topic that came up over and over again was the fact that we don’t focus on the beginners enough. And not necessarily beginners in the sense of brand new developers, but beginners in terms of those...
    Published 2009/12/23 13:36 by 革命
    Filed under: ,
  • Comparing Simple Lambda Expressions With Moq

    I was contacted today by a friend who was asking a very poignant question about using Moq in order to mock out a repository that uses expressions as finders. I don't think they were using them quite like we are going to use them below, but I'm...
    Published 2009/8/23 13:18 by 革命
    Filed under:
  • Building Testable ASP.NET MVC Applications

    You've probably heard the old adage, " Better , faster , cheaper , pick any two." If you want something good and fast, it isn't going to be cheap, and if you want something fast and cheap, it isn't going to be very good. Cheaper...
    Published 2009/7/18 1:27 by 革命
    Filed under: , ,
  • 测试驱动开发TDD指南

    建议参考Jeffrey Palermo写的 Guidelines for Test-Driven Development ,以便对TDD中的单元测试有深刻的理解。这里罗列几点: 分隔或模拟诸如数据库、文件系统、网络、队列等等环境依赖。因为对于这些测试返回太慢、并且不会给出实际问题的有用反馈。 在隔离中运行并通过。如果测试要求特定的环境设置否则就会意外失败,那么它们不是好的单元测试。改变它们以便简单、可靠。测试应该在任何机器上都能执行并通过。 经常使用stubs和mock对象。如果要被测试的代码典型地调用外部数据库或文件系统...
    Published 2009/7/11 15:47 by 革命
    Filed under:
  • ASP.NET MVC TDD using Visual Studio 2010

    Phil Haack announced yesterday that the tooling support for ASP.NET MVC is available for Visual Studio 2010. Troy Goode already blogged about the designer snippets (which are really really cool, just like other parts of the roadmap for ASP.NET MVC 2.0...
    Published 2009/6/30 18:15 by 革命
    Filed under: ,