Files
AdventOfCode/AdventOfCode2018.Tests/MarbleGame_Tests.cs
2023-12-02 18:27:00 +01:00

70 lines
1.4 KiB
C#

namespace AdventOfCode2018.Tests;
public class MarbleGame_Tests
{
[Fact]
public void PlayGame__Test1()
{
MarbleGame marbleGame = new();
marbleGame.PlayGame(9, 25);
long highScore = marbleGame.GetHighScore();
Assert.Equal(32, highScore);
}
[Fact]
public void PlayGame__Test2()
{
MarbleGame marbleGame = new();
marbleGame.PlayGame(10, 1618);
long highScore = marbleGame.GetHighScore();
Assert.Equal(8317, highScore);
}
[Fact]
public void PlayGame__Test3()
{
MarbleGame marbleGame = new();
marbleGame.PlayGame(13, 7999);
long highScore = marbleGame.GetHighScore();
Assert.Equal(146373, highScore);
}
[Fact]
public void PlayGame__Test4()
{
MarbleGame marbleGame = new();
marbleGame.PlayGame(17, 1104);
long highScore = marbleGame.GetHighScore();
Assert.Equal(2764, highScore);
}
[Fact]
public void PlayGame__Test5()
{
MarbleGame marbleGame = new();
marbleGame.PlayGame(21, 6111);
long highScore = marbleGame.GetHighScore();
Assert.Equal(54718, highScore);
}
[Fact]
public void PlayGame__Test6()
{
MarbleGame marbleGame = new();
marbleGame.PlayGame(30, 5807);
long highScore = marbleGame.GetHighScore();
Assert.Equal(37305, highScore);
}
}