public void GetShapes_GivenMap_ReturnUniqueShapes(int[][] map, IEnumerable <Shape> expected)
 {
     Shape[] expectedShapes = expected.ToArray();
     Shape[] actualShapes   = ShapesFinding.GetShapes(map).ToArray();
     CollectionAssert.AreEqual(expectedShapes, actualShapes);
 }
 public void GetShapes_EmptyMap_ThrowArgumentException() =>
 Assert.Throws <ArgumentException>(() => ShapesFinding.GetShapes(new int[][] { }));
 public void GetShapes_MapIsNotRectangular_ThrowArgumentException() =>
 Assert.Throws <ArgumentException>(() => ShapesFinding.GetShapes(new int[][] { new int[] { 1, 1 }, new int[] { 0, 0, 0 } }));
 public void GetShapes_NullMap_ThrowArgumentNullException() =>
 Assert.Throws <ArgumentNullException>(() => ShapesFinding.GetShapes(null));