🏠 Accueil
基準測試
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 人工智能詞彙表 🔗 Liens Utiles
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.