Exemplo n.º 1
0
        public void TerminalPrintSequenceOfNumbers()
        {
            // Arrange
            Terminal term = new Terminal();

            // Act
            string class_type = "integer";
            term.AcceptFirstAnswer(class_type); /* Create Prime class instance */
            string how_many = "10";
            string second_output = term.AcceptSecondAnswer(how_many);
            string actual_output = term.PrintSequence();
            string expected_output = "0 1 2 3 4 5 6 7 8 9";

            // Assert
            Assert.AreEqual(expected_output, actual_output);
        }