Пример #1
0
        public void SampleThreeGivesExpectedOutput()
        {
            var floodFiller = new FloodFiller(SampleInputs.SampleThree);
            var output      = floodFiller.Fill(new Point(1, 7), '#', true);

            Assert.That(output, Is.EqualTo(SampleInputs.OutputThree));
        }
Пример #2
0
        public void SampleOneGivesExpectedOutput()
        {
            var floodFiller = new FloodFiller(SampleInputs.SampleOne);
            var output      = floodFiller.Fill(new Point(2, 2), '@', false);

            Assert.That(output, Is.EqualTo(SampleInputs.OutputOne));
        }
Пример #3
0
        public void SampleTwoGivesExpectedOutput()
        {
            var floodFiller = new FloodFiller(SampleInputs.SampleTwo);
            var output      = floodFiller.Fill(new Point(8, 3), ',', false);

            Assert.That(output, Is.EqualTo(SampleInputs.OutputTwo));
        }