AdventOfCode/AoC_2025.Tests/Day01Test.cs

47 lines
1.1 KiB
C#

using AdvenOfCode.Contracts;
namespace AoC_2025.Tests;
public class Day01Test
{
private readonly IPuzzleSolver<int> _sut;
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
private readonly string TestInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day01.txt";
private readonly string ProdInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Prod\day01.txt";
public Day01Test()
{
_sut = new Day01();
}
[Fact]
public void Part01_Test_equals_3()
{
var actual = _sut.SolvePart1(TestInputPath);
Assert.Equal(3, actual);
}
[Fact]
public void Part01_Prod_equals_1097()
{
var actual = _sut.SolvePart1(ProdInputPath);
Assert.Equal(1097, actual);
}
[Fact]
public void Part02_Test_equals_16()
{
var actual = _sut.SolvePart2(TestInputPath);
Assert.Equal(16, actual);
}
[Fact]
public void Part02_Prod_equals_7101()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal(7101, actual);
}
}