xunit

JUnit Test if XML Document is sorted on arbitrary column

Given an xml document like <root> <row> <a>2</a> <b>1</b> <c>8</c> </row> <row> <b>5</b> <a>2</a> <c>8</c> </row> <row> <a>2</a> <c>8</c> <b>6</b> </row> </root> Is there an easy way to assert that the XML document is sorted on element B in XMLUnit Edit: I have an odd problem with a pie...

Configuring xUnit test output in Hudson

I have a simple PoC project in Hudson. The PoC has unit tests written via UnitTest++ and outputs the results as XML for consumption by xUnit to munge into jUnit format. Here are the salient relevant I have my project configured to use MSBuild to build the 2008 solution. The project contains both the dll it is to build and the unit t...

Gallio Icarus Debugging fails with Visual Web Developer 2010 Express

I'm getting the following error in the Runtime Log: Could not find Visual Studio version 'Any'. Host started at 01/06/2010 20:11:25. Running under CLR v4.0.30319 runtime. Attaching the debugger to the host. Could not find Visual Studio version 'Any'. Could not attach debugger to the host. I'm running 32bit windows. Anyone had this pr...

Performance Testing using xUnit framework

Hi all, I wonder if it is possible to run performance testing based on xUnit? ...

TDD System Under Test Creation Patterns (AutoFixture)

I'm trying to use SUT Factory 'pattern' to create my SUT. Given the SUT structure: namespace MySut { public class Dep1 { } public class Dep2 { } public class Sut { public Sut( Dep1 dep1, Dep2 dep2 ) { } } } I'm using AutoFixture, and am wondering what's the best way to col...

Is there any reason in Junit not to create your objects at the declaration?

Is there any reason to put object creation inside of setUp() rather than at an instance variable declaration? I've seen it done this way in books, but the effect is the same and I'm not sure if it was done for a best practice reason, because an earlier version of Junit did not instantiate the object for each test (see here), or if it's ...

xUnit or NUnit? What advantages and disadvantages of each other?

Hi Guys, what is pluses and minuses of each framework, comparing to each other? How well they work with ASP.NET MVC? How well they support mocking? ...

What testing framework for c# is the most similar to Junit 4?

Mainly from feature-set standing point, as well as similarity of method names/working logic/verbosity ? ...

Run xUnit tests from TFS2010

I'm trying to work out how to run xUnit tests from TFS 2010. I found some articles on how to achieve that with the older version (http://jonnekats.wordpress.com/2009/05/07/integrate-xunit-tests-into-your-daily-team-build/, http://weblogs.asp.net/mehfuzh/archive/2009/08/25/configuring-team-build-using-xunit.aspx). These approaches don't ...

Exception when deleting message from Azure queue?

I'm dipping my toes into Windows Azure, and I'm running into something that has to be simple, but I just can't see it. I have this small test to play with Azure queues: public void CanPublishSillyLittleMessageOnQueue() { var queueClient = CloudStorageAccount.DevelopmentStorageAccount.CreateCloudQueueClient(); var testQueue = qu...