public void ParseInputTest() { var(playerOneDeck, playerTwoDeck) = Problem22.ParseInput(_testInput); Assert.AreEqual(new [] { 9, 2, 6, 3, 1 }, playerOneDeck); Assert.AreEqual(new [] { 5, 8, 4, 7, 10 }, playerTwoDeck); }
public void Problem22_Return_Result_871198282() { string path = BasePath + @"22\p022_names.txt"; long act = Problem22.NamesScores(path); Assert.True(act.Equals(871198282)); }
public void Solution_ReturnsValue() { var result = Problem22.Solution(); Assert.AreEqual(871198282, result); }
public void CalculateScoreTest() { var deck = new[] { 3, 2, 10, 6, 8, 5, 9, 4, 7, 1 }; Assert.AreEqual(306, Problem22.CalculateScore(deck)); }
public void FindWinnerScoreTest() { Assert.AreEqual(306, Problem22.FindWinnerScore(_testInput)); }