You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ConsEco/Code/TestsUnitaires/TestUnitCompte.cs

24 lines
572 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
namespace TestsUnitaires
{
public class TestUnitCompte
{
readonly Compte c1 = new("Livret A", 234);
readonly Compte c2 = new("&e23R_te7", 1245.34);
[Fact]
public void TestConstructeurCompte()
{
Assert.Equal("Livret A", c1.Nom);
Assert.Equal("&e23R_te7", c2.Nom);
Assert.Equal(234, c1.Solde);
Assert.Equal(1245.34, c2.Solde);
}
}
}