private static void Day21() { var instructions = File.ReadAllLines(@"..\..\Day21\input.txt"); var d21 = new Day21.Day21(instructions); Console.WriteLine($"Scrambled password = {d21.Scramble("abcdefgh")}"); Console.WriteLine($"Unscrambled password = {d21.BruteForcePassword("fbgdceah")}"); }
public void ScrambleScramblesCorrectly(string instruction, string password, string expected) { var instructions = new string[] { instruction }; var sut = new AdventOfCode2016.Day21.Day21(instructions); var actual = sut.Scramble(password); Assert.Equal(expected, actual); }