From 0b46964ad1f57fd8002198512d24d8c71be552ea Mon Sep 17 00:00:00 2001 From: nimaye Date: Fri, 14 Oct 2022 14:27:05 +0200 Subject: [PATCH] modification du test supprimer banque --- Code/TestsUnitaires/TU_Compte.cs | 14 -------------- Code/TestsUnitaires/TestUnitCompte.cs | 12 ++++++++++++ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/Code/TestsUnitaires/TU_Compte.cs b/Code/TestsUnitaires/TU_Compte.cs index 4324854..9817352 100644 --- a/Code/TestsUnitaires/TU_Compte.cs +++ b/Code/TestsUnitaires/TU_Compte.cs @@ -14,19 +14,5 @@ namespace TestsUnitaires 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); - - } - } } \ No newline at end of file diff --git a/Code/TestsUnitaires/TestUnitCompte.cs b/Code/TestsUnitaires/TestUnitCompte.cs index 3f93b41..739b9f7 100644 --- a/Code/TestsUnitaires/TestUnitCompte.cs +++ b/Code/TestsUnitaires/TestUnitCompte.cs @@ -18,6 +18,18 @@ namespace TestsUnitaires Assert.Equal("&e23R_te7", c2.Nom); Assert.Equal(234, c1.Solde); Assert.Equal(1245.34, c2.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); } } }