public void Task1_Element() { var stringInput = @"F10 N3 F7 R90 R90 R90 R180 R270 L270 F11"; var number = Puzzle12.Task1(stringInput.ToPuzzle12Input()); Assert.Equal(25, number); }
private static void Main(string[] args) { var watch = System.Diagnostics.Stopwatch.StartNew(); var result1 = Puzzle12.Task1(PuzzleInput.ToPuzzle12Input()); watch.Stop(); var elapsedMs = watch.Elapsed; Console.WriteLine($"Element: {result1} (elapsed: {elapsedMs})"); watch = System.Diagnostics.Stopwatch.StartNew(); var result2 = Puzzle12.Task2(PuzzleInput.ToPuzzle12Input()); watch.Stop(); elapsedMs = watch.Elapsed; Console.WriteLine($"Element: {result2} (elapsed: {elapsedMs})"); }