DevLabs > DevLabs Forums > Pex > MSTest vs NUnit with Pex
Ask a questionAsk a question
 

AnswerMSTest vs NUnit with Pex

  • Friday, October 30, 2009 10:50 AMCarl Hasselskog Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    You mention in the documentation that Pex works better with MSTest than with NUnit. What is it in Pex that works better with MSTest than with NUnit?

    Regards
    Carl

Answers

  • Monday, November 02, 2009 6:40 AMNikolai TillmannMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Most features should work equally well with MSTest, NUnit, and other test frameworks.

    The Pex team uses MSTest as the main test framework for its development, so it's simply best tested, and new features often become available first for MSTest.

    A particular feature area where the test framework experience differs are Moles: While MSTest has the concept of a "HostType", which allows us to run a test in a separate process under a profiler to redirect the calls as required by Moles, most other frameworks don't have this concept. We are currently working on making Moles available under other test frameworks as well.



    Nikolai Tillmann - Tell us how you use Pex

All Replies

  • Monday, November 02, 2009 6:40 AMNikolai TillmannMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Most features should work equally well with MSTest, NUnit, and other test frameworks.

    The Pex team uses MSTest as the main test framework for its development, so it's simply best tested, and new features often become available first for MSTest.

    A particular feature area where the test framework experience differs are Moles: While MSTest has the concept of a "HostType", which allows us to run a test in a separate process under a profiler to redirect the calls as required by Moles, most other frameworks don't have this concept. We are currently working on making Moles available under other test frameworks as well.



    Nikolai Tillmann - Tell us how you use Pex