|
|
@ -4,6 +4,7 @@ namespace TestsUnitaires
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class TU_Compte
|
|
|
|
public class TU_Compte
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
|
public void Ctor_Compte()
|
|
|
|
public void Ctor_Compte()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -12,5 +13,20 @@ namespace TestsUnitaires
|
|
|
|
Assert.Equal("Crédit Agricole", c.Nom);
|
|
|
|
Assert.Equal("Crédit Agricole", c.Nom);
|
|
|
|
Assert.Equal(20000, c.Solde);
|
|
|
|
Assert.Equal(20000, c.Solde);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
|
|
|
public void testSupprimerBanque()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Banque bq = new Banque("Crédit Agricole", "https://creditagricole.fr", "https://yt3.ggpht.com/a/AGF-l7_mEfX2eQaGm8GefLOg5ZMRciNw-pESE3gUWg=s900-c-k-c0xffffffff-no-rj-mo");
|
|
|
|
|
|
|
|
Inscrit i1 = new Inscrit("A1001", "Smith", "smith@gmail.com", "luke", "test", 500);
|
|
|
|
|
|
|
|
Assert.NotNull(i1.LesBanques);
|
|
|
|
|
|
|
|
i1.ajouterBanque(bq);
|
|
|
|
|
|
|
|
Assert.Contains(bq, i1.LesBanques);
|
|
|
|
|
|
|
|
i1.SupprimerBanque(bq);
|
|
|
|
|
|
|
|
Assert.DoesNotContain(bq, i1.LesBanques);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|