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

@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>AdventOfCode2023.Tests</RootNamespace>
<RootNamespace>AdventOfCode2024.Tests</RootNamespace>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
@@ -24,7 +24,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AdventOfCode2024\AdventOfCode2024.csproj" />
<ProjectReference Include="..\AdventOfCode2024\AdventOfCode2024.csproj"/>
</ItemGroup>
</Project>

View File

@@ -5,33 +5,33 @@ 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([
"3 4",
"4 3",
"2 5",
"1 3",
"3 9",
"3 3",
});
]);
Assert.Equal("11", result);
}
[Fact]
public void ResolvePart2__Example()
{
var day = new Day01();
Day01 day = new Day01();
string result = day.ResolvePart2(new[] {
string result = day.ResolvePart2([
"3 4",
"4 3",
"2 5",
"1 3",
"3 9",
"3 3",
});
]);
Assert.Equal("31", result);
}