2023-12-02 11:12:26 -06:00
|
|
|
namespace CubeConundrum.Tests;
|
|
|
|
|
|
|
|
|
|
public class ProgramTests
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Main_GivenInput_ItShouldReturnExpectedSum()
|
|
|
|
|
{
|
|
|
|
|
var result = await Program.Main(["INPUT.txt"]);
|
|
|
|
|
result.Should().Be(2879);
|
|
|
|
|
}
|
2023-12-02 12:46:56 -06:00
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Main_GivenInputAndPart2_ItShouldReturnExpectedSum()
|
|
|
|
|
{
|
|
|
|
|
var result = await Program.Main(["INPUT.txt", "part2"]);
|
|
|
|
|
result.Should().Be(65122);
|
|
|
|
|
}
|
2023-12-02 11:12:26 -06:00
|
|
|
}
|