public void When_EmptyGrid_Then_0Shapes() { int[,] sampleGrid = { }; int result = ShapeCounter.CountShapes(sampleGrid); Assert.IsTrue(result == 0); }
public void When_1x1Grid_Then_1Shape() { int[,] sampleGrid = { { 1 }, { 0 } }; int result = ShapeCounter.CountShapes(sampleGrid); Assert.IsTrue(result == 1); }
public void When_3x3GridWith2Shapes_Then_2Shapes() { int[,] sampleGrid = { { 1, 0, 1 }, { 0, 0, 1 }, { 0, 0, 1 } }; int result = ShapeCounter.CountShapes(sampleGrid); Assert.IsTrue(result == 2); }