예제 #1
0
        public void Day4_2()
        {
            var day4 = new Day4Solution();

            Assert.AreEqual("cde", day4.Shift("abc", 2));
            Assert.AreEqual("zab", day4.Shift("xyz", 2));
        }
예제 #2
0
        public void Day4()
        {
            var day4 = new Day4Solution();

            Assert.True(day4.RoomIsDecoy("aaaaabbbzyx", "abxyz"));
            Assert.True(day4.RoomIsDecoy("abcdefgh", "abcde"));
            Assert.True(day4.RoomIsDecoy("notarealroom", "oarel"));
            Assert.False(day4.RoomIsDecoy("totallyrealroom", "decoy"));
        }