Example #1
0
 public void FindsProductOfEntriesSummingTo2020() =>
 Day01.CalculateProductOfTwoEntries(new[]
 {
     "1721",
     "979",
     "366",
     "299",
     "675",
     "1456"
 })
 .Should()
 .Be(514579);
Example #2
0
 public void CalculatePartOne() =>
 Output
 .WriteLine($"Products of entries summing to 2020: {Day01.CalculateProductOfTwoEntries(Input)}");