feat: initial implementation of input provider, ref: A24-7

This commit is contained in:
Simon Diesenreiter
2024-12-02 12:54:35 +01:00
parent d2b1d4bcfa
commit d15b0b65da
8 changed files with 2063 additions and 31 deletions

View File

@@ -0,0 +1,16 @@
namespace AoCLevelInputProvider.Tests;
using AoCLevelInputProvider;
public class LevelInputProviderTest
{
[Fact]
public void Test1()
{
var lip = new LevelInputProvider();
string text = lip.WithYear(2024).WithLevel(1).Provide();
var lines = text.Split("\n");
Assert.Equal("39472 15292", lines[0]);
Assert.Equal("18560 15292", lines[999]);
}
}

View File

@@ -1,14 +0,0 @@
namespace LevelInputProvider.Tests;
using LevelInputProvider;
public class UnitTest1
{
[Fact]
public void Test1()
{
var hwp = new HelloWorldProvider();
Assert.Equal("Hello, Simon!", hwp.GetHelloWorld("Simon"));
Assert.Equal("Hello world!", hwp.GetHelloWorld());
}
}