47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using AdvenOfCode.Contracts;
|
|
|
|
namespace AoC_2025.Tests;
|
|
|
|
public class Day03Test
|
|
{
|
|
private readonly IPuzzleSolver<long> _sut;
|
|
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
|
private readonly string TestInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day03.txt";
|
|
private readonly string ProdInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Prod\day03.txt";
|
|
|
|
public Day03Test()
|
|
{
|
|
_sut = new Day03();
|
|
}
|
|
[Fact]
|
|
public void Part01_Test_equals_357()
|
|
{
|
|
var actual = _sut.SolvePart1(TestInputPath);
|
|
|
|
Assert.Equal(357, actual);
|
|
}
|
|
|
|
[Fact]
|
|
public void Part01_Prod_equals_16812()
|
|
{
|
|
var actual = _sut.SolvePart1(ProdInputPath);
|
|
|
|
Assert.Equal(16812, actual);
|
|
}
|
|
|
|
[Fact]
|
|
public void Part02_Test_equals_3121910778619()
|
|
{
|
|
var actual = _sut.SolvePart2(TestInputPath);
|
|
|
|
Assert.Equal(3121910778619, actual);
|
|
}
|
|
|
|
[Fact]
|
|
public void Part02_Prod_equals_166345822896410()
|
|
{
|
|
var actual = _sut.SolvePart2(ProdInputPath);
|
|
|
|
Assert.Equal(166345822896410, actual);
|
|
}
|
|
} |