🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links
Intermediate

.NET Unit Testing with xUnit

#csharp #dotnet #xunit #moq

Generate unit tests for a C# .NET application using the xUnit framework.

Write xUnit tests for a C# class named 'Calculator' that implements basic arithmetic (Add, Subtract, Multiply, Divide). Use theories (InlineData) to test multiple input sets for the Add method. Ensure there is a test checking for DivideByZeroException.