vs-unit-testing-framework

NUnit & Visual Studio Unit Testing Framework

Is there a way to create unit tests that can be run with the Visual Studio Unit Testing Framework as well as NUnit? I personally prefer the Visual Studio one, but the build server I am using only does NUnit, so I would like to support both if possible. EDIT: To clarify, I would like to run my own tests using Visual Studio (without add-o...

Designing unit tests for XML documents

I have a following method which takes a XDocument, iterates through the nodes and remove/replace nodes based on some condition. public static void Format(XDocument xDocument) { foreach(XmlNode documentNode in xDocument) { XmlNode[] spanNodes =documentNode.SelectNodes("//span") ; foreach(XmlNode spanNode in span...

overwhelmed with test results

I am getting a bit overwhelmed with number of test result files and directories being produced by Microsoft's own test framework (which comes with VS2010). Does anyone know where to tell the test project not to save the results files or at least not keep so many? Cheers ...

How to make VS Unit Test show the Error Message from exceptions other than UnitTestAssertException?

I'm using VS Unit Testing Framework and Moq. When a Moq verification fails, I'll get a Moq.MockException. In the Test Results window, instead of showing the helpful message inside the exception, it just says "Test method XXX threw exception: ..." Is there a way to tell the VS Unit Test framework always display the message of exceptions...