Tag Archives: xunit

Week 35 roundup

Last week recap and links: Fun with json and trello in powershell where Jamie shows how to have fun with invoke-restmethod and some trello API stuff Xunit Test Patterns is where to look for unittest best practices. Nuget must haves … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Solve concurrency database issues in nServicebus

When we configure nServicebus to run with multiple thread (MaximumConcurrencyLevel) sometimes duplicate records are inserted. This happens when the endpoint has been down for maintenance and the queue has filled up with messages. Repro This is not ideal, but can … Continue reading

Posted in Development | Tagged , , , , , , | Leave a comment

Partial subs with nsubstitute

Finally got the hang of partial s(t)ubs with nsubstitute. The key is that the original method is called when setting up the sub. To avoid this use argument matchers and the DoNotCallBase() method. Property To test/setup the property to return … Continue reading

Posted in Test | Tagged , , | 2 Comments

Week 17 roundup

Last week recap an links: Found this awesome tool Service Bus MQ Manager for managing my NServiceBus MSMQ. Helped the xunit team with a visual studio online exception by blogging about it here This weeks Evernote pick was CloudMagic. Ever … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Reproduce unit test failures from Hosted Build Controller

Our builds succeed with warnings. After investigation of the output we noticed failing unit tests. But local they run fine. Here’s what we did to troubleshoot and fix the issue. First we downloaded the build output from the drop location. … Continue reading

Posted in Development | Tagged , , , , | 1 Comment