feat: initial implementation of input provider, ref: A24-7
This commit is contained in:
16
LevelInputProvider.Tests/LevelInputProviderTest.cs
Normal file
16
LevelInputProvider.Tests/LevelInputProviderTest.cs
Normal 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]);
|
||||
}
|
||||
}
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user