Code cleanup
This commit is contained in:
@@ -1,35 +1,32 @@
|
||||
using Xunit;
|
||||
namespace AdventOfCode2018.Tests;
|
||||
|
||||
namespace AdventOfCode2018.Tests
|
||||
public class Day03_Tests
|
||||
{
|
||||
public class Day03_Tests
|
||||
[Fact]
|
||||
public void ResolvePart1__Test()
|
||||
{
|
||||
[Fact]
|
||||
public void ResolvePart1__Test()
|
||||
{
|
||||
Day03 day03 = new Day03();
|
||||
Day03 day03 = new();
|
||||
|
||||
string result = day03.ResolvePart1(new string[] {
|
||||
"#1 @ 1,3: 4x4",
|
||||
"#2 @ 3,1: 4x4",
|
||||
"#3 @ 5,5: 2x2",
|
||||
});
|
||||
string result = day03.ResolvePart1(new[] {
|
||||
"#1 @ 1,3: 4x4",
|
||||
"#2 @ 3,1: 4x4",
|
||||
"#3 @ 5,5: 2x2",
|
||||
});
|
||||
|
||||
Assert.Equal("4", result);
|
||||
}
|
||||
Assert.Equal("4", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ResolvePart2__Test()
|
||||
{
|
||||
Day03 day03 = new Day03();
|
||||
[Fact]
|
||||
public void ResolvePart2__Test()
|
||||
{
|
||||
Day03 day03 = new();
|
||||
|
||||
string result = day03.ResolvePart2(new string[] {
|
||||
"#1 @ 1,3: 4x4",
|
||||
"#2 @ 3,1: 4x4",
|
||||
"#3 @ 5,5: 2x2",
|
||||
});
|
||||
string result = day03.ResolvePart2(new[] {
|
||||
"#1 @ 1,3: 4x4",
|
||||
"#2 @ 3,1: 4x4",
|
||||
"#3 @ 5,5: 2x2",
|
||||
});
|
||||
|
||||
Assert.Equal("3", result);
|
||||
}
|
||||
Assert.Equal("3", result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user