Add AoC 2026 project templates
This commit is contained in:
1 parent
5e3bb81140
commit
132f8db999
7 files changed
+220
No files matched your search
@@ -0,0 +1,47 @@
|
||||
using AdvenOfCode.Contracts;
|
||||
|
||||
namespace AoC_2026.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/2026/Test/day01.txt";
|
||||
private readonly string ProdInputPath = @$"{rootPath}/AoC-PuzzleInputs/2026/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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user