From 5593bf56c393a80163146117ecf68b458b187ea4 Mon Sep 17 00:00:00 2001 From: Xander Sigler Date: Wed, 26 Jan 2022 21:35:47 -0800 Subject: [PATCH] Debug for test project --- AOC2021.Test/AOCTester.cs | 1 + AOC2021/Models/AOCDay.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/AOC2021.Test/AOCTester.cs b/AOC2021.Test/AOCTester.cs index c64dd11..b45c30c 100644 --- a/AOC2021.Test/AOCTester.cs +++ b/AOC2021.Test/AOCTester.cs @@ -19,6 +19,7 @@ namespace AOC2021.Test Console.WriteLine($"Testing {request.Day} Part A, Test data"); if (!string.IsNullOrEmpty(request.Answer.Day_A_Test)) response.Answer.Day_A_Test = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = test, Version = AOCVersion.A }).Answer; + Console.WriteLine(response); Console.WriteLine(response.Answer.Day_A_Test); Console.WriteLine($"Testing {request.Day} Part A, Input data"); if (!string.IsNullOrEmpty(request.Answer.Day_A_Input)) diff --git a/AOC2021/Models/AOCDay.cs b/AOC2021/Models/AOCDay.cs index 6e00c2e..343e6f4 100644 --- a/AOC2021/Models/AOCDay.cs +++ b/AOC2021/Models/AOCDay.cs @@ -23,6 +23,7 @@ namespace AOC2021.Models } public AOCResponse ExecuteDay(AOCRequest request) { + Console.WriteLine("Executing request " + Newtonsoft.Json.JsonConvert.SerializeObject(request)); _request = request; var timer = new Stopwatch(); try