32 lines
619 B
C#
32 lines
619 B
C#
namespace AdventOfCode2018.Tests;
|
|
|
|
public class Day03_Tests
|
|
{
|
|
[Fact]
|
|
public void ResolvePart1__Test()
|
|
{
|
|
Day03 day03 = new();
|
|
|
|
string result = day03.ResolvePart1(new[] {
|
|
"#1 @ 1,3: 4x4",
|
|
"#2 @ 3,1: 4x4",
|
|
"#3 @ 5,5: 2x2",
|
|
});
|
|
|
|
Assert.Equal("4", result);
|
|
}
|
|
|
|
[Fact]
|
|
public void ResolvePart2__Test()
|
|
{
|
|
Day03 day03 = new();
|
|
|
|
string result = day03.ResolvePart2(new[] {
|
|
"#1 @ 1,3: 4x4",
|
|
"#2 @ 3,1: 4x4",
|
|
"#3 @ 5,5: 2x2",
|
|
});
|
|
|
|
Assert.Equal("3", result);
|
|
}
|
|
} |