Exemplo n.º 1
0
        public void Scores_LoadsCorrectly_FromFile()
        {
            // Arrange
            gameSimulation = new GameSimulation();
            List <string> expected = new List <string>()
            {
                { "1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2" },
                { "9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9" },
                { "4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4" }
            };
            // Act
            var actual = gameSimulation.GetAllScores(pathToTestFile);

            // Assert
            Assert.IsTrue(expected.SequenceEqual(actual));
        }