public void TestRiver2() { int[,] matrix = { { 1, 0, 0, 0, 0 }, { 1, 0, 0, 0, 0 }, { 1, 0, 0, 0, 0 }, { 1, 0, 0, 0, 0 }, { 1, 0, 0, 0, 0 } }; int[] expected = { 5 }; var rivers = new Rivers(); var received = rivers.Solve(matrix); Assert.AreEqual(expected.Length, received.Length); }