AdventOfCode/AoC_2025.Tests/Day02Test.cs

47 lines
1.2 KiB
C#

using AdvenOfCode.Contracts;
namespace AoC_2025.Tests;
public class Day02Test
{
private readonly IPuzzleSolver<long> _sut;
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
private readonly string TestInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day02.txt";
private readonly string ProdInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Prod\day02.txt";
public Day02Test()
{
_sut = new Day02();
}
[Fact]
public void Part01_Test_equals_1227775554()
{
var actual = _sut.SolvePart1(TestInputPath);
Assert.Equal(1227775554, actual);
}
[Fact]
public void Part01_Prod_equals_13919717792()
{
var actual = _sut.SolvePart1(ProdInputPath);
Assert.Equal(13919717792, actual);
}
[Fact]
public void Part02_Test_equals_4174379265()
{
var actual = _sut.SolvePart2(TestInputPath);
Assert.Equal(4174379265, actual);
}
[Fact]
public void Part02_Prod_equals_14582313461()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal(14582313461, actual);
}
}