Day12 part 1
This commit is contained in:
36
AdventOfCode2018.Tests/Day12_Tests.cs
Normal file
36
AdventOfCode2018.Tests/Day12_Tests.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace AdventOfCode2018.Tests
|
||||
{
|
||||
[TestClass()]
|
||||
public class Day12_Tests
|
||||
{
|
||||
[TestMethod()]
|
||||
public void ResolvePart1__Test()
|
||||
{
|
||||
Day12 day = new Day12();
|
||||
|
||||
string result = day.ResolvePart1(new string[]
|
||||
{
|
||||
"initial state: #..#.#..##......###...###",
|
||||
"",
|
||||
"...## => #",
|
||||
"..#.. => #",
|
||||
".#... => #",
|
||||
".#.#. => #",
|
||||
".#.## => #",
|
||||
".##.. => #",
|
||||
".#### => #",
|
||||
"#.#.# => #",
|
||||
"#.### => #",
|
||||
"##.#. => #",
|
||||
"##.## => #",
|
||||
"###.. => #",
|
||||
"###.# => #",
|
||||
"####. => #",
|
||||
});
|
||||
|
||||
Assert.AreEqual("325", result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user