Esempio n. 1
0
        public void TestMethod1()
        {
            //ARRANGE
            var underTest = new CompteManagerImpl_Memory();
            var expected  = 3;//nombre de compte
            //ACT
            var actual = underTest.FindAll();

            foreach (var item in actual)
            {
                Console.WriteLine(item.Proprietaire);
            }
            //ASSERT
            Assert.AreEqual(expected, ((IList <Compte>)actual).Count);
        }
        public void TestFindAll()
        {
            //ARRANGE

            var underTest = new CompteManagerImpl_Memory();
            var Expected  = 3; // NUmber of existing Counts

            //ACT

            var Actual = underTest.FindAll();

            //foreach(var item in Actual)
            //{
            //    Console.WriteLine(item.Proprietaire);
            //}

            //ASSERT

            Assert.AreEqual(Expected, ((IList <Compte>)Actual).Count);
        }