Esempio n. 1
0
        public void NumbersInARangeTest()
        {
            Basics assignm0 = new Basics();

            Assert.AreEqual(new int[] { 3, 4, 5, 6, 7, 8, 9 },

                            assignm0.GetArrayOfRangeOfNumbers(3, 9));

            Assert.AreEqual(new int[] { -3, -2, -1 },

                            assignm0.GetArrayOfRangeOfNumbers(-3, -1));

            Assert.AreEqual(new int[] { -3, -2, -1, 0, 1 },

                            assignm0.GetArrayOfRangeOfNumbers(-3, 1));
        }