- Source: XUnit.net
xUnit.net is a free and open-source unit testing tool for the .NET Framework, written by the original author of NUnit. The software can also be used with .NET Core and Mono.
It is licensed under Apache License 2.0, and the source code is available on GitHub. xUnit.net works with Xamarin, ReSharper, CodeRush, and TestDriven.NET. It is authored by James Newkirk and Brad Wilson.
Example
Example of an xUnit.net test fixture:
After you compile the test, run it in your console:
See also
Test automation
List of unit testing frameworks for .NET programming languages (includes column indicating which are based on xUnit)
JUnit
References
Further reading
Ayobami, Adewole (2018). C# and .NET Core Test-Driven Development: Dive into TDD to create flexible, maintainable, and production-ready .NET Core applications. Packt Publishing. ISBN 978-1788299923.
Nagel, Christian (2021). Professional C# and .NET. John Wiley & Sons. ISBN 978-1119797210.
External links
Official website
Unit Testing: xUnit | Visual Studio Toolbox | Channel 9
Kata Kunci Pencarian:
- Pengujian unit
- XUnit.net
- NUnit
- List of unit testing frameworks
- SoapUI
- Microsoft and open source
- List of .NET libraries and frameworks
- Unit testing
- Test Studio
- Test-driven development
- JUnit