14 lines
496 B
C#
14 lines
496 B
C#
namespace ChronospatialComputer.Tests;
|
|
|
|
public class ComputerTests
|
|
{
|
|
private readonly string _exampleInput = $"Register A: 729{Environment.NewLine}Register B: 0{Environment.NewLine}Register C: 0{Environment.NewLine}{Environment.NewLine}Program: 0,1,5,4,3,0";
|
|
|
|
[Test]
|
|
public async Task RunProgram_WhenCalledWithExampleInput_ItShouldReturnExpectedValue()
|
|
{
|
|
var result = Computer.From(_exampleInput).RunProgram();
|
|
|
|
await Assert.That(result).IsEqualTo("4,6,3,5,6,3,5,2,1,0");
|
|
}
|
|
} |