Migrate tests to XUnit
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Xunit;
|
||||
|
||||
namespace AdventOfCode2018.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public class MarbleGame_Tests
|
||||
{
|
||||
[TestMethod]
|
||||
[Fact]
|
||||
public void PlayGame__Test1()
|
||||
{
|
||||
MarbleGame marbleGame = new MarbleGame();
|
||||
@@ -13,10 +12,10 @@ namespace AdventOfCode2018.Tests
|
||||
marbleGame.PlayGame(9, 25);
|
||||
long highScore = marbleGame.GetHighScore();
|
||||
|
||||
Assert.AreEqual(32, highScore);
|
||||
Assert.Equal(32, highScore);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Fact]
|
||||
public void PlayGame__Test2()
|
||||
{
|
||||
MarbleGame marbleGame = new MarbleGame();
|
||||
@@ -24,10 +23,10 @@ namespace AdventOfCode2018.Tests
|
||||
marbleGame.PlayGame(10, 1618);
|
||||
long highScore = marbleGame.GetHighScore();
|
||||
|
||||
Assert.AreEqual(8317, highScore);
|
||||
Assert.Equal(8317, highScore);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Fact]
|
||||
public void PlayGame__Test3()
|
||||
{
|
||||
MarbleGame marbleGame = new MarbleGame();
|
||||
@@ -35,10 +34,10 @@ namespace AdventOfCode2018.Tests
|
||||
marbleGame.PlayGame(13, 7999);
|
||||
long highScore = marbleGame.GetHighScore();
|
||||
|
||||
Assert.AreEqual(146373, highScore);
|
||||
Assert.Equal(146373, highScore);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Fact]
|
||||
public void PlayGame__Test4()
|
||||
{
|
||||
MarbleGame marbleGame = new MarbleGame();
|
||||
@@ -46,10 +45,10 @@ namespace AdventOfCode2018.Tests
|
||||
marbleGame.PlayGame(17, 1104);
|
||||
long highScore = marbleGame.GetHighScore();
|
||||
|
||||
Assert.AreEqual(2764, highScore);
|
||||
Assert.Equal(2764, highScore);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Fact]
|
||||
public void PlayGame__Test5()
|
||||
{
|
||||
MarbleGame marbleGame = new MarbleGame();
|
||||
@@ -57,10 +56,10 @@ namespace AdventOfCode2018.Tests
|
||||
marbleGame.PlayGame(21, 6111);
|
||||
long highScore = marbleGame.GetHighScore();
|
||||
|
||||
Assert.AreEqual(54718, highScore);
|
||||
Assert.Equal(54718, highScore);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Fact]
|
||||
public void PlayGame__Test6()
|
||||
{
|
||||
MarbleGame marbleGame = new MarbleGame();
|
||||
@@ -68,7 +67,7 @@ namespace AdventOfCode2018.Tests
|
||||
marbleGame.PlayGame(30, 5807);
|
||||
long highScore = marbleGame.GetHighScore();
|
||||
|
||||
Assert.AreEqual(37305, highScore);
|
||||
Assert.Equal(37305, highScore);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user