From 3e3a214bd3332e14652ce26356b4291a047e18cc Mon Sep 17 00:00:00 2001 From: Xander Sigler Date: Sun, 6 Feb 2022 11:32:11 -0800 Subject: [PATCH] Updated test case --- AOC2021.Test/AOCTester.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/AOC2021.Test/AOCTester.cs b/AOC2021.Test/AOCTester.cs index 38531eb..c17c952 100644 --- a/AOC2021.Test/AOCTester.cs +++ b/AOC2021.Test/AOCTester.cs @@ -19,20 +19,19 @@ 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, IgnoreLogMessages = true }).Answer.ToString(); - Console.WriteLine(response.Answer.Day_A_Test); + Console.WriteLine($"Testing {request.Day} Part A, Input data"); if (!string.IsNullOrEmpty(request.Answer.Day_A_Input)) response.Answer.Day_A_Input = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = input, Version = AOCVersion.A, IgnoreLogMessages = true }).Answer.ToString(); - Console.WriteLine(response.Answer.Day_A_Input); Console.WriteLine($"Testing {request.Day} Part B, Test data"); if (!string.IsNullOrEmpty(request.Answer.Day_B_Test)) response.Answer.Day_B_Test = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = test, Version = AOCVersion.B, IgnoreLogMessages = true }).Answer.ToString(); - Console.WriteLine(response.Answer.Day_B_Test); + Console.WriteLine($"Testing {request.Day} Part B, Input data"); if (!string.IsNullOrEmpty(request.Answer.Day_B_Input)) response.Answer.Day_B_Input = GetAOCDay(request.Day).ExecuteDay(new AOCRequest() { Input = input, Version = AOCVersion.B, IgnoreLogMessages = true }).Answer.ToString(); - Console.WriteLine(response.Answer.Day_B_Input); + return response; } @@ -50,7 +49,6 @@ namespace AOC2021.Test day = (AOCDay)(IAOCService)Activator.CreateInstance(x); } } - Console.WriteLine($"Retrieving route for {route}. Found {day}"); return (AOCDay)day; }