Пример #1
0
        public void FindAndResolveNotInTheMiddle()
        {
            // arrange
            var line = "x,x,1";
            var sut  = new ZeroOne();

            sut.AddLine(1, 3, line);

            // act
            sut.Resolve();

            // assert
            Assert.NotNull(sut.Grid);
            Assert.Equal("x", sut.Grid.GetCell(1, 1).Value);
            Assert.Equal("x", sut.Grid.GetCell(1, 2).Value);
            Assert.Equal("1", sut.Grid.GetCell(1, 3).Value);
        }
Пример #2
0
        public void FindAndResolveFill1()
        {
            // arrange
            var line = "0,x,0";
            var sut  = new ZeroOne();

            sut.AddLine(1, 3, line);

            // act
            sut.Resolve();

            // assert
            Assert.NotNull(sut.Grid);
            Assert.Equal("0", sut.Grid.GetCell(1, 1).Value);
            Assert.Equal("1", sut.Grid.GetCell(1, 2).Value);
            Assert.Equal("0", sut.Grid.GetCell(1, 3).Value);
        }