mirror of
https://github.com/farcasclaudiu/MartianRobots.git
synced 2026-06-22 09:01:17 +03:00
Add project files.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user