mirror of
https://github.com/farcasclaudiu/advent_of_code_2022.git
synced 2026-06-22 09:01:25 +03:00
31 lines
664 B
C#
31 lines
664 B
C#
namespace day09.test;
|
|
using FluentAssertions;
|
|
public class UnitTestProblem
|
|
{
|
|
[Fact]
|
|
public void TestProblem1()
|
|
{
|
|
var problem = new Problem();
|
|
problem.ResolvePart1("testdata.txt");
|
|
|
|
problem.Result1.Should().Be("13");
|
|
}
|
|
|
|
[Fact]
|
|
public void TestProblem2()
|
|
{
|
|
var problem = new Problem();
|
|
problem.ResolvePart2("testdata.txt");
|
|
|
|
problem.Result2.Should().Be("1");
|
|
}
|
|
|
|
[Fact]
|
|
public void TestProblem2larger()
|
|
{
|
|
var problem = new Problem();
|
|
problem.ResolvePart2("testdata_large.txt");
|
|
|
|
problem.Result2.Should().Be("36");
|
|
}
|
|
} |