예제 #1
0
        public void NumberScanner_InputSizeIsGreaterThanExpected_Fails()
        {
            string incorrectInput = "    _  _     _  _  _  _  _ " +
                                    "  | _| _||_||_ |_ | ||_||_|_" +
                                    "  ||_  _|  | _||_|  ||_| _|";
            var sut = new Scanner();

            string result = sut.ParseInput(incorrectInput);
            Assert.Fail("This point should not be reached");
        }
예제 #2
0
        public void NumberScanner_Reads_Returns00000000()
        {
            string input = " _  _  _  _  _  _  _  _  _ " +
                           "| || || || || || || || || |" +
                           "|_||_||_||_||_||_||_||_||_|";
            var sut = new Scanner();

            string result = sut.ParseInput(input);

            Assert.AreEqual("000000000", result);
        }