Day05: Statement and failing tests

This commit is contained in:
2018-12-05 09:33:36 +01:00
parent a61446686f
commit 1d345f110d
6 changed files with 80 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ namespace AdventOfCode2018
{
private static void Main(string[] args)
{
int currentDay = 4;
int currentDay = 5;
if (currentDay == 1)
{
@@ -53,6 +53,17 @@ namespace AdventOfCode2018
Console.WriteLine("Day04 Result Part2: {0}", resultPart2);
}
if (currentDay == 5)
{
// Resolve Day05
Day05 day05 = new Day05();
string dataDay05 = File.ReadAllText("inputs/Day05.txt");
string resultPart1 = day05.ResolvePart1(dataDay05);
Console.WriteLine("Day04 Result Part1: {0}", resultPart1);
string resultPart2 = day05.ResolvePart2(dataDay05);
Console.WriteLine("Day04 Result Part2: {0}", resultPart2);
}
Console.Read();
}
}