Code cleanup

This commit is contained in:
2023-12-02 18:27:00 +01:00
parent 4d8bfbb377
commit 4b3d0fd0b6
78 changed files with 6814 additions and 6950 deletions

View File

@@ -1,43 +1,40 @@
using Xunit;
namespace AdventOfCode2018.Tests;
namespace AdventOfCode2018.Tests
public class Day02_Tests
{
public class Day02_Tests
[Fact]
public void ResolvePart1__Test1()
{
[Fact]
public void ResolvePart1__Test1()
{
Day02 day02 = new Day02();
Day02 day02 = new();
string result = day02.ResolvePart1(new string[] {
"abcdef",
"bababc",
"abbcde",
"abcccd",
"aabcdd",
"abcdee",
"ababab",
});
string result = day02.ResolvePart1(new[] {
"abcdef",
"bababc",
"abbcde",
"abcccd",
"aabcdd",
"abcdee",
"ababab",
});
Assert.Equal("12", result);
}
Assert.Equal("12", result);
}
[Fact]
public void ResolvePart2__Test()
{
Day02 day02 = new Day02();
[Fact]
public void ResolvePart2__Test()
{
Day02 day02 = new();
string result = day02.ResolvePart2(new string[] {
"abcde",
"fghij",
"klmno",
"pqrst",
"fguij",
"axcye",
"wvxyz",
});
string result = day02.ResolvePart2(new[] {
"abcde",
"fghij",
"klmno",
"pqrst",
"fguij",
"axcye",
"wvxyz",
});
Assert.Equal("fgij", result);
}
Assert.Equal("fgij", result);
}
}