Debug for test project
continuous-integration/drone/push Build is failing Details

master
Xander Sigler 3 years ago
parent 5cb7425124
commit 5593bf56c3

@ -19,6 +19,7 @@ namespace AOC2021.Test
Console.WriteLine($"Testing {request.Day} Part A, Test data"); Console.WriteLine($"Testing {request.Day} Part A, Test data");
if (!string.IsNullOrEmpty(request.Answer.Day_A_Test)) 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; 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(response.Answer.Day_A_Test);
Console.WriteLine($"Testing {request.Day} Part A, Input data"); Console.WriteLine($"Testing {request.Day} Part A, Input data");
if (!string.IsNullOrEmpty(request.Answer.Day_A_Input)) if (!string.IsNullOrEmpty(request.Answer.Day_A_Input))

@ -23,6 +23,7 @@ namespace AOC2021.Models
} }
public AOCResponse ExecuteDay(AOCRequest request) public AOCResponse ExecuteDay(AOCRequest request)
{ {
Console.WriteLine("Executing request " + Newtonsoft.Json.JsonConvert.SerializeObject(request));
_request = request; _request = request;
var timer = new Stopwatch(); var timer = new Stopwatch();
try try

Loading…
Cancel
Save