示例#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);
        }
示例#2
0
        public void testWithActualPartB()
        {
            var sot    = new DaySix();
            var result = sot.GetErrorCorrectedMessage(DaySix.PUZZLE_INPUT, true);

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

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