Esempio n. 1
0
        public void BackwardString_Filled(int n, string expected)
        {
            List <int> list = new List <int>(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 });
            string     actual;

            // Arrange

            // Act
            actual = TestUtils.TrimmedStringWithSingleSpaces(Opgave6.BackwardString(list, n));

            // Assert
            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void BackwardString_Empty(int n, string expected)
        {
            List <int> list = new List <int>();
            string     actual;

            // Arrange

            // Act
            actual = TestUtils.TrimmedStringWithSingleSpaces(Opgave6.BackwardString(list, n));

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