Files
AdventOfCode/AdventOfCode2018.Tests/Day12_Tests.cs
2023-12-01 11:11:44 +01:00

36 lines
902 B
C#

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);
}
}
}