Migrate tests to XUnit

This commit is contained in:
2023-12-01 11:51:08 +01:00
parent 9054ddf139
commit 52c9dab8a6
37 changed files with 431 additions and 451 deletions

View File

@@ -1,12 +1,11 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Xunit;
namespace AdventOfCode2018.Tests
{
[TestClass]
public class Day10_Tests
{
[TestMethod]
[Fact]
public void ResolvePart1__Test()
{
Day10 day = new Day10 { Width = 12, Height = 10 };
@@ -45,7 +44,7 @@ namespace AdventOfCode2018.Tests
"position=<-3, 6> velocity=< 2, -1>",
});
Assert.AreEqual(
Assert.Equal(
Environment.NewLine + "............" +
Environment.NewLine + ".#...#..###." +
Environment.NewLine + ".#...#...#.." +
@@ -58,7 +57,7 @@ namespace AdventOfCode2018.Tests
Environment.NewLine + "............", result);
}
[TestMethod]
[Fact]
public void ResolvePart2__Test()
{
Day10 day = new Day10();
@@ -97,7 +96,7 @@ namespace AdventOfCode2018.Tests
"position=<-3, 6> velocity=< 2, -1>",
});
Assert.AreEqual("3", result);
Assert.Equal("3", result);
}
}
}