Beispiel #1
0
        public void WhenNis95to99TheLastElementIs95(int n)
        {
            var result  = ListExercises.MakeFiveList(n);
            var lastPos = result.Count - 1;

            Assert.AreEqual(95, result[lastPos]);
        }
Beispiel #2
0
        public void WhenNis0TheListisEmpty(int n)
        {
            var result = ListExercises.MakeFiveList(n);

            Assert.AreEqual(0, result.Count);
        }
Beispiel #3
0
        public void WhenNis5to9TheListContains5(int n)
        {
            var result = ListExercises.MakeFiveList(n);

            Assert.AreEqual(5, result[0]);
        }
Beispiel #4
0
        public void WhenNis95to99TheListHas19Elements(int n)
        {
            var result = ListExercises.MakeFiveList(n);

            Assert.AreEqual(19, result.Count);
        }
Beispiel #5
0
        public void WhenNis5to9TheListHasOneElement(int n)
        {
            var result = ListExercises.MakeFiveList(n);

            Assert.AreEqual(1, result.Count);
        }