Add project files.

This commit is contained in:
2022-09-13 02:43:55 +03:00
parent 2dec4b1dc5
commit 9e39314500
74 changed files with 2336 additions and 0 deletions
@@ -0,0 +1,25 @@
using FluentAssertions;
namespace MartianRobotsSolver.Tests
{
public class UnitTestMarsSolver
{
[Fact]
public async Task Sample_Solver_Test()
{
var input = await File.ReadAllTextAsync("sample_input.txt");
var result = new MarsSolver().Process(input);
var expectedOutput = await File.ReadAllTextAsync("sample_output.txt");
result.Output.Should().Be(expectedOutput);
}
[Fact]
public async Task Second_Robot_Sense_The_Scent()
{
var input = await File.ReadAllTextAsync("sample_scent_input.txt");
var result = new MarsSolver().Process(input);
var expectedOutput = await File.ReadAllTextAsync("sample_scent_output.txt");
result.Output.Should().Be(expectedOutput);
}
}
}