mirror of
https://github.com/jcreek/advent-of-code.git
synced 2026-07-13 03:03:46 +00:00
chore(*): Move all C# solutions into a C# folder to make it clearer which languages are used
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
namespace AOC.Tests.YX;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
||||
public class DayX
|
||||
{
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
realData = File.ReadAllLines(Path.Combine(TestContext.CurrentContext.TestDirectory, "YX", "Data",
|
||||
$"{GetThisClassName()}.dat"));
|
||||
}
|
||||
|
||||
protected string GetThisClassName() { return GetType().Name; }
|
||||
private string[] realData;
|
||||
|
||||
[TestCase("blah", 0)]
|
||||
[TestCase(null, 232)] // The actual answer
|
||||
public void Part1(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? new[] { input } : realData;
|
||||
// string[] lines = input != null ? input.Split("\n") : realData;
|
||||
|
||||
//if (expected != null)
|
||||
//{
|
||||
// Assert.That(result, Is.EqualTo(expected.Value));
|
||||
//}
|
||||
|
||||
//Console.WriteLine($"Part 1: {result}");
|
||||
}
|
||||
|
||||
[TestCase("blah", 1)]
|
||||
[TestCase(null, 1783)] // The actual answer
|
||||
public void Part2(string? input, int? expected)
|
||||
{
|
||||
//string[] lines = input != null ? new[] { input } : realData;
|
||||
// string[] lines = input != null ? input.Split("\n") : realData;
|
||||
|
||||
//if (expected != null)
|
||||
//{
|
||||
// Assert.That(result, Is.EqualTo(expected.Value));
|
||||
//}
|
||||
|
||||
//Console.WriteLine($"Part 2: {result}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user