.NET 6 va XUnit: using System; using Xunit; namespace Example.Tests { public class CalculatorTests { [Fact] public void Addition_TwoNumbers_ReturnsSum() { // Arrange var calculator = new Calculator; var a = 5; var b = 10; // Act var result = calculator.Add ((a, b); // Assert Assert.Equal (((15, result); } } public class Calculator { public int Add (((int a, int b) { return a + b; } } Bu juda oddiy birlik sinovi bo'lib, Add () funksiyasini Calculator sinfida tekshiradi. XUnitning Fact atributidan foydalanib, Addition_TwoNumbers_ReturnsSum usulini test sifatida belgilaydi. Sinov ichida, Add_TwoNumbers_Returnsum usul
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence