示例#1
0
        public void Credit_compteBloque_Exc()
        {
            CompteBancaire cb = fausseDAL.RetournerCompteBancaire("MAERTE");

            cb.Bloque = true;

            cb.Crediter(15);
        }
示例#2
0
        public void Credit_15Solde20_35()
        {
            CompteBancaire cb = fausseDAL.RetournerCompteBancaire("MAERTE");

            cb.Crediter(15);

            Assert.AreEqual(35, cb.Solde);
        }
        private static void exercice1()
        {
            CompteBancaire compteCourant = new CompteBancaire("Alexis Lapeze", 0, "euros");

            compteCourant.Crediter(2000);
            compteCourant.Debiter(1000);

            Console.WriteLine(compteCourant.ToString());
        }
示例#4
0
        private static void ex1()
        {
            CompteBancaire compteCourant = new CompteBancaire("Nicolas", 0, "euros");

            compteCourant.Crediter(2000);
            compteCourant.Debiter(1000);

            Console.WriteLine(compteCourant.ToString());
        }