29

On my search for a Unit-Testing tool for C# i have found xUnit.NET. Untill now, i read most of the articles on http://xunit.codeplex.com/ and even tried out the examples given at How do I use xUnit.net?.

But sadly, on the offical page i could just find the basic informations to xUnit.NET. Is there any further information avadible for it?

DIF
  • 2,470
  • 6
  • 35
  • 49
  • "Is there any further information avadible for it?" What specifically do you want to know? What have you managed to achieve with it so far? – Rup Jan 25 '12 at 16:56
  • 3
    The *.chm file is very comprehensive. You have to grab it separately from the project's [downloads page](http://xunit.codeplex.com/releases/view/77573). – Sean U Jan 25 '12 at 17:04
  • Untill now i got nothing more, than the examples at "How do I use xUnit.net" to work. What I'm looking for, is a good text to learn to work with the framework. – DIF Jan 25 '12 at 17:06
  • 1
    It's probably not established enough for there to be any books yet. A book like [Pragmatic Unit Testing](http://pragprog.com/book/utc2/pragmatic-unit-testing-in-c-with-nunit) will cover the general concepts, though, even if the concrete examples are all for xUnit.NET's predecessor. – Sean U Jan 25 '12 at 17:31
  • Thanks for your answers - especially the *.chm-File will help a lot. I think its hard to understand xUnit.NET with a general book about unit tests, becaus the terms and useage differ a lot from other xUnit-Frameworks. – DIF Jan 26 '12 at 07:09

2 Answers2

32

Besides the xUnit-1.9.1.chm-File mentioned by Sean U and the Examples on the official xUnit.NET website I found two other resources to help me understand the basics of the work with xUnit.NET:

Sadly, as pointed out also by Sean U, it seems as there are no books at all about the xUnit.NET-Framework yet. So, for further information it looks like one has go with studying the *.chm-File and reading general books about unit testing. Or switch to another testing-framework, that's what I think I'll do...

Update

Ognyan Dimitrov added some additional resources in his comments:

DIF
  • 2,470
  • 6
  • 35
  • 49
  • 2
    +1 for a solid link to the .CHM file which is extremely well hidden for some reason. – Wade Hatler May 18 '14 at 14:24
  • 1
    Other resources : [this](http://lostechies.com), [this](http://www.amazon.com/xUnit-Test-Patterns-Refactoring-Code/dp/0131495054) and [this](http://xunitpatterns.com/index.html). These should be sufficient to start with. – Ognyan Dimitrov Nov 27 '14 at 09:03
  • @ I added two of the links you recommended to the answer, but I could not find anything xUnit related on [lostechies.com](http://lostechies.com/) – DIF Nov 27 '14 at 11:34
2

If you decide to abandon xUnit and use NUnit instead, a good book to read is "The Art of Unit Testing (with examples in .NET)".

Nice clear explanations of both basic and advanced unit testing concepts, using the NUnit framework.

Tom Bushell
  • 5,865
  • 4
  • 45
  • 60
  • Thanks! Actually, I have already worked through that book and it was indeed quite helpful. – DIF Jan 30 '12 at 07:28