예제 #1
0
        public void TestMyListWithNoElements()
        {
            Summ summer    = new Summ();
            var  emptyList = new List <int>();

            Assert.AreEqual(0, summer.SumMyNumbersBitch(emptyList));
        }
예제 #2
0
        public void TestMyListWithNull()
        {
            Summ summer   = new Summ();
            var  nullList = new List <int>();

            nullList = null;
            Assert.AreEqual(null, summer.SumMyNumbersBitch(nullList));
        }
예제 #3
0
        public void TestMyListWithOneElement()
        {
            Summ summer         = new Summ();
            var  oneElementList = new List <int>();

            oneElementList.Add(15);
            Assert.AreEqual(15, summer.SumMyNumbersBitch(oneElementList));
        }
예제 #4
0
        public void TestMySumaOfList()
        {
            Summ summer      = new Summ();
            var  szamosLista = new List <int>();

            szamosLista.Add(15);
            szamosLista.Add(15);
            szamosLista.Add(5);
            szamosLista.Add(18);

            Assert.AreEqual(53, summer.SumMyNumbersBitch(szamosLista));
        }