public void CopyFromTest() { using (var reader = File.OpenText("../../../maze.txt")) { var maze = PlayfieldFactory.Create(reader); var maze1 = new Playfield(maze.Dimentions.X, maze.Dimentions.Y); maze1.CopyCellTypesFrom(maze); Assert.Equal(maze[0, 0].CellType, maze1[0, 0].CellType); Assert.Equal(maze[10, 10].CellType, maze1[10, 10].CellType); } }