Пример #1
0
        public void While_SumValuesWhileCurrentValueIsNot4_ThenStop_ShouldStopAfterOnePassKobi()
        {
            var list = new List <int> {
                4, 1, 2, 3
            };
            var expected = 0;

            var actual = LogicAndInterations.While_SumValuesWhileCurrentValueIsNot4_ThenStopKobi(list);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void While_SumValuesWhileCurrentValueIsNot4_ThenStop_ShouldNotStopUntilLastValueKobi()
        {
            var list = new List <int> {
                1, 2, 3, 4
            };
            var expected = 6;

            var actual = LogicAndInterations.While_SumValuesWhileCurrentValueIsNot4_ThenStopKobi(list);

            Assert.AreEqual(expected, actual);
        }