2023-12-07 14:06:26 -06:00
|
|
|
namespace CamelCards.Tests;
|
|
|
|
|
|
|
|
|
|
public class ProgramTests
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Main_WhenCalledWithInputFile_ItShouldReturnExpectedResult()
|
|
|
|
|
{
|
|
|
|
|
var result = await Program.Main(["INPUT.txt"]);
|
|
|
|
|
result.Should().Be(251287184);
|
|
|
|
|
}
|
2023-12-07 19:34:55 -06:00
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Main_WhenCalledWithInputFileAsPart2_ItShouldReturnExpectedResult()
|
|
|
|
|
{
|
|
|
|
|
var result = await Program.Main(["INPUT.txt", "part2"]);
|
|
|
|
|
result.Should().Be(250757288);
|
|
|
|
|
}
|
2023-12-07 14:06:26 -06:00
|
|
|
}
|