{"conversations": [{"from": "user", "value": "Escriu un exemple d'una prova unit\u00e0ria usant.net 6 i xunit"}, {"from": "assistant", "value": "using Xunit; namespace ExampleTests { public class MathTests { [Fact] public void Addition_ TwoNumbers_ ReturnsCorcSum () { // Arrange int number1 = 5; int number2 = 7; int expectedSum = 12; // Act int actualSum = Math.Add( number1, number2); / / Assert Assert. Equal (expectedSum, actualSum); } } publica class Math { publica static int Add( int b) => a + b; } }"}]}