Esempio n. 1
0
        public void testGetErrorCorrectedMessageA()
        {
            var input      = @"eedadn
drvtee
eandsr
raavrd
atevrs
tsrnev
sdttsa
rasrtv
nssdts
ntnada
svetve
tesnvt
vntsnd
vrdear
dvrsen
enarar";
            var sot        = new DaySix();
            var resultDesc = sot.GetErrorCorrectedMessage(input, false);

            Assert.Equal("easter", resultDesc);

            var resultAsc = sot.GetErrorCorrectedMessage(input, true);

            Assert.Equal("advent", resultAsc);
        }
Esempio n. 2
0
        public void testWithActualPartB()
        {
            var sot    = new DaySix();
            var result = sot.GetErrorCorrectedMessage(DaySix.PUZZLE_INPUT, true);

            Assert.Equal("odqnikqv", result);
        }
Esempio n. 3
0
        public void testWithActualPartA()
        {
            var sot    = new DaySix();
            var result = sot.GetErrorCorrectedMessage(DaySix.PUZZLE_INPUT, false);

            Assert.Equal("asvcbhvg", result);
        }