Formula una domandaFormula una domanda
 

Con rispostaWhat Mocking Framework to use?

  • mercoledì 17 giugno 2009 9.39Dynamic Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

    I am using MSTest to write my unit tests. I am just wondering what mocking framework do you recommend me to use? or you have a good experience with it.

    Mocking frameworks I have seen:

    • TypeMock (although it's good but it's not free and my Company is not willing to pay for it)
    • NMock (doesn't let me mock static methods apparently)
    • EasyMock
    • RhinoMock (doesn't let me mock static methods apparently)
    • Moq

    I need to be able to mock static classes and static methods (for instance mocking HttpContext)

    Thanks.

     


Risposte

Tutte le risposte