Esempio n. 1
0
        public void Test5Task2_5()
        {
            // Arrange
            // Act
            var result = Lesson05.Task2(new System.Collections.Generic.List <int>()
            {
                8, 6, 4, 2
            }, 8, 4);
            var expected = 49;

            // Assert
            Assert.AreEqual(expected, result);
        }
Esempio n. 2
0
        public void Test5Task2_2()
        {
            // Arrange
            // Act
            var result = Lesson05.Task2(new System.Collections.Generic.List <int>()
            {
                5, 4, 3
            }, 5, 3);
            var expected = 9;

            // Assert
            Assert.AreEqual(expected, result);
        }
        public void Test6Task3_1()
        {
            // Arrange
            int n = 5;
            int k = 3;
            int r = 6;
            // Act
            var result   = Lesson05.Task3(n, k, r);
            var expected = Lesson05.Task2(result, n, k);

            // Assert
            Assert.AreEqual(expected, r);
        }