static void Main(string[] args) { Console.WriteLine("----------DAY1----------"); var day1Inputs = GetDay1Inputs("../../../Day1/Day1Input.txt"); FuelCalculatorEngine.CalculateTotalFuelRequirement(day1Inputs); Console.WriteLine("----------DAY2----------"); var day2Inputs = GetDay2Inputs("../../../Day2/Day2Input.txt"); int[] clone1 = (int[])day2Inputs.Clone(); int[] clone2 = (int[])day2Inputs.Clone(); Console.WriteLine($"Output: {IntCodeReaderEngine.ReadIntCode(clone1, 12, 2)}"); IntCodeReaderEngine.FindIntCodeSpecificOutput(clone2, 19690720); Console.WriteLine("----------DAY3----------"); var day3Inputs = GetDay3Inputs("../../../Day3/Day3Input.txt"); CircuitMapper.MapCircuits(day3Inputs); Console.WriteLine("----------DAY4----------"); PasswordDecryptor.TotalDecryptionOptions(353096, 843212); Console.WriteLine("----------DAY6----------"); var day6Inputs = GetDay6Inputs("../../../Day6/Day6Input.txt"); var mapEngine = new UniversalOrbitalMapEngine(day6Inputs); mapEngine.MapOrbits(); }
public void Then_the_correct_password_is_returned_for_abc() { var decryptor = new PasswordDecryptor(); var result = decryptor.DecryptWithPositioningFor("abc"); Assert.That(result, Is.EqualTo("05ace8e3")); }
public void Then_the_correct_password_is_returned_when_the_door_id_is_abc() { var decryptor = new PasswordDecryptor(); var result = decryptor.DecryptFor("abc"); Assert.That(result, Is.EqualTo("18f47a30")); }
public void Setup() { passwordDecryptor = new PasswordDecryptor(); }
public void Then_the_password_is_returned_for_the_actual_door_id() { var decryptor = new PasswordDecryptor(); var result = decryptor.DecryptWithPositioningFor("uqwqemis"); }
public void Then_the_password_is_returned() { var decryptor = new PasswordDecryptor(); var password = decryptor.DecryptFor("uqwqemis"); }