Example #1
0
        public void MultiplesModel_InitialValues_CorrectDefaultValues()
        {
            IMultiples multiples = new Multiples();

            Assert.AreEqual(0, multiples.Values.Count);
            Assert.AreEqual(0, multiples.GetSum());
        }
Example #2
0
        public void MultiplesModel_AddingMultipleMultiples_SumAndListCountIsCorrect()
        {
            IMultiples multiples = new Multiples();

            multiples.Values.Add(4);
            multiples.Values.Add(6);

            Assert.AreEqual(2, multiples.Values.Count);
            Assert.AreEqual(10, multiples.GetSum());
        }