Exemplo n.º 1
0
        public async Task ProblemOne_TerminatesAndReturnsResult_WhenEnteringTerminatingSampleFromWebsite()
        {
            var output = await Solution08.ProblemOneAsync(WebsiteFixedTerminatingSample);

            Assert.Equal(8, output);
        }
Exemplo n.º 2
0
        public async Task ProblemTwo_ReturnsTerminatingResult_WhenEnteringLoopSampleFromWebsite()
        {
            var output = await Solution08.ProblemTwoAsync(WebsiteBrokenLoopSample);

            Assert.Equal(8, output);
        }
Exemplo n.º 3
0
        public async Task ProblemOne_DetectsLoop_WhenEnteringLoopSampleFromWebsite()
        {
            var output = await Solution08.ProblemOneAsync(WebsiteBrokenLoopSample);

            Assert.Equal(5, output);
        }