About 3,620,000 results
Open links in new tab
  1. c# - xUnit.net: Global setup + teardown? - Stack Overflow

    Oct 19, 2012 · This question is about the unit testing framework xUnit.net. I need to run some code before any test is executed, and also some code after all tests are done. I thought there should be …

  2. c# - NUnit vs. xUnit - Stack Overflow

    What are the differences between NUnit and xUnit.net? What's the point of developing two of them, not only one? I've read that xUnit is being developed by inventor of NUnit: xUnit.net is a unit te...

  3. Is it possible to use Dependency Injection with xUnit?

    Nuget package First add the following nuget package to your Xunit project: Install-Package Xunit.Microsoft.DependencyInjection Setup your fixture The abstract class of …

  4. How do you filter xunit tests by trait with "dotnet test"?

    How do you filter xunit tests by trait with "dotnet test"? Asked 8 years, 10 months ago Modified 4 years, 10 months ago Viewed 27k times

  5. c# - xUnit : Assert two List<T> are equal? - Stack Overflow

    New link in comments broken too. Project is now moved to GitHub, but I haven't been able to find that particular source file there either. For complex object don't forget that you need an …

  6. Run code once before and after ALL tests in xUnit.net

    Do you mean xUnit as "the generic group of language-specific unit testing tools like JUnit, NUnit, etc." or xUnit as "xUnit.net, the .Net unit testing tool"?

  7. Why is the xUnit Runner not finding my tests - Stack Overflow

    Apr 25, 2013 · For reasons of efficiency, the xUnit authors have opted to not use BindingFlags.NonPublic when searching for Test Classes in the runner (the MSIL metadata tables …

  8. c# - how to debug with xUnit? - Stack Overflow

    Jun 26, 2012 · I'm learning xUnit and so far, have found it to be a most useful tool. It's making me rethink some of my coding tactics to TDD instead. However, I've come across an interesting problem. My …

  9. c# - Assert an Exception using XUnit - Stack Overflow

    Jul 10, 2017 · I am a newbie to XUnit and Moq. I have a method which takes string as an argument.How to handle an exception using XUnit. [Fact] public void

  10. Assert that method has been called using xUnit - Stack Overflow

    Oct 29, 2020 · Assert that method has been called using xUnit Asked 5 years, 1 month ago Modified 5 years, 1 month ago Viewed 12k times