ex-aoc/AdventOfCode/AdventOfCode.Test/Day1Test.cs
MarcUs7i 2e6b418fef AIO commit
Sorry for the late commit, forgot to commit and push it on Saturday 7th.
Thank god there are moodle reminders
2024-12-31 23:47:08 +01:00

22 lines
454 B
C#

namespace AdventOfCode.Test;
public sealed class Day1Test
{
private string _input = "3 4\n4 3\n2 5\n1 3\n3 9\n3 3";
[Fact]
public void Part1()
{
var day1 = new Day1();
var result = day1.Part1(_input);
Assert.Equal(11, result);
}
[Fact]
public void Part2()
{
var day1 = new Day1();
var result = day1.Part2(_input);
Assert.Equal(31, result);
}
}