18 lines
406 B
C#
18 lines
406 B
C#
namespace CubeConundrum.Tests;
|
|
|
|
public class ProgramTests
|
|
{
|
|
[Fact]
|
|
public async Task Main_GivenInput_ItShouldReturnExpectedSum()
|
|
{
|
|
var result = await Program.Main(["INPUT.txt"]);
|
|
result.Should().Be(2879);
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Main_GivenInputAndPart2_ItShouldReturnExpectedSum()
|
|
{
|
|
var result = await Program.Main(["INPUT.txt", "part2"]);
|
|
result.Should().Be(65122);
|
|
}
|
|
} |