Code formatting and warning fixing.

This commit is contained in:
2024-12-01 17:36:23 +01:00
parent 9f8d966b7a
commit dafd2526d1
93 changed files with 739 additions and 823 deletions

View File

@@ -5,24 +5,24 @@ public class Day01_Tests
[Fact]
public void ResolvePart1__Example()
{
var day = new Day01();
Day01? day = new Day01();
string result = day.ResolvePart1(new[] {
string result = day.ResolvePart1([
"1abc2",
"pqr3stu8vwx",
"a1b2c3d4e5f",
"treb7uchet",
});
]);
Assert.Equal("142", result);
}
[Fact]
public void ResolvePart2__Example()
{
var day = new Day01();
Day01? day = new Day01();
string result = day.ResolvePart2(new[] {
string result = day.ResolvePart2([
"two1nine",
"eightwothree",
"abcone2threexyz",
@@ -30,7 +30,7 @@ public class Day01_Tests
"4nineeightseven2",
"zoneight234",
"7pqrstsixteen",
});
]);
Assert.Equal("281", result);
}