/// <summary>
 /// Increments the BorderingMines by returning an integer incrementation of the current
 /// <see cref="IBoardComponents"/> or 0 if component doesn't exist.
 /// </summary>
 /// <param name="component">The component to use to get the number of BorderingMines</param>
 /// <returns>An integer value of the number of bordering mines</returns>
 private static int IncrementComponent(IBoardComponents component)
 {
     return(component != null ? component.BorderingMines + 1 : 0);
 }
 /// <summary>
 /// A constructor for the MinesweeperBox which takes a <see cref="IBoardComponents"/> as its parameter
 /// </summary>
 /// <param name="component">The type of component to be inserted in the board</param>
 public MinesweeperBox(IBoardComponents component) : this()
 {
     Component = component;
 }
 /// <summary>
 /// Checks if a <see cref="IBoardComponents"/> exists and if it is a <see cref="Mine"/>
 /// </summary>
 /// <param name="component">The component to be checked</param>
 /// <returns>A boolean value: true if it is a mine and false otherwise</returns>
 private static bool IsMine(IBoardComponents component)
 {
     return(component != null && component.IsMine);
 }