コード例 #1
0
        public void WaitingArea_Puzzle1Ticks_HaveCorrectPatternResults(int numTicks, bool expectedTickResult, string expectedGrid)
        {
            var  area   = new WaitingArea(Example);
            bool?result = null;

            for (var k = 0; k < numTicks; ++k)
            {
                result = area.Puzzle1Tick();
            }

            result.Should().Be(expectedTickResult);
            area.ToString().Should().Be(expectedGrid);
        }
コード例 #2
0
        public void WaitingArea_GridInitializedCorrectly()
        {
            var area = new WaitingArea(Example);

            area.ToString().Should().Be("L.LL.LL.LLLLLLLLL.LLL.L.L..L..LLLL.LL.LLL.LL.LL.LLL.LLLLL.LL..L.L.....LLLLLLLLLLL.LLLLLL.LL.LLLLL.LL");
        }