Beispiel #1
0
        public void SetUp()
        {
            var mockConsoleTools = new Mock <IConsoleTools>();

            mockConsoleTools.Setup(c => c.GetStr(It.IsAny <string>())).Returns("File Does not exist, so we need some duff text here to stop it hanging!");

            var sut = new PuzzleInput(new CookieRequestor(new FileHandler(new FileSystem()), mockConsoleTools.Object));

            _returns = sut.GetPuzzleInputAsArray("https://adventofcode.com/2020/day/1/input");
        }