Fix tests

This commit is contained in:
2023-12-01 11:11:44 +01:00
parent 55243531f4
commit 9054ddf139
34 changed files with 193 additions and 188 deletions

View File

@@ -1,11 +1,12 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventOfCode2018.Tests
{
[TestClass()]
[TestClass]
public class Day10_Tests
{
[TestMethod()]
[TestMethod]
public void ResolvePart1__Test()
{
Day10 day = new Day10 { Width = 12, Height = 10 };
@@ -45,19 +46,19 @@ namespace AdventOfCode2018.Tests
});
Assert.AreEqual(
"\r\n............" +
"\r\n.#...#..###." +
"\r\n.#...#...#.." +
"\r\n.#...#...#.." +
"\r\n.#####...#.." +
"\r\n.#...#...#.." +
"\r\n.#...#...#.." +
"\r\n.#...#...#.." +
"\r\n.#...#..###." +
"\r\n............", result);
Environment.NewLine + "............" +
Environment.NewLine + ".#...#..###." +
Environment.NewLine + ".#...#...#.." +
Environment.NewLine + ".#...#...#.." +
Environment.NewLine + ".#####...#.." +
Environment.NewLine + ".#...#...#.." +
Environment.NewLine + ".#...#...#.." +
Environment.NewLine + ".#...#...#.." +
Environment.NewLine + ".#...#..###." +
Environment.NewLine + "............", result);
}
[TestMethod()]
[TestMethod]
public void ResolvePart2__Test()
{
Day10 day = new Day10();