/// <summary> /// Creates instance of the context object. /// </summary> /// <param name="player">Accepts any instance of IPlayer.</param> /// <param name="renderer">Accepts any instance of IRenderer.</param> /// <param name="scoreboard">Accepts any instance of IScoreBoardObserver.</param> /// <param name="matrix">Accepts instance of the class LabyrinthMatrix.</param> public Context(IScoreBoardObserver scoreboardHandler, IRenderer renderer, IPlayer player, LabyrinthMatrix matrix) { this.ScoreboardHandler = scoreboardHandler; this.Renderer = renderer; this.Player = player; this.Matrix = matrix; this.Memory = new StateMemory(); }
public void TestMatrixAlwaysToCreateADiffrentMatrix() { var labyrinthOne = new LabyrinthMatrix().Matrix; Thread.Sleep(25); var labyrinthTwo = new LabyrinthMatrix().Matrix; var result = CompareTwoMatrix(labyrinthOne, labyrinthTwo); Assert.IsTrue(result, "Does not create different matrisies"); }