Code formatting and warning fixing.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user