public void The_number_of_continents_should_be_1_when_map_is_01_11() { Point[][] mapStructure = { new[] { new Point(0), new Point(1) }, new[] { new Point(1), new Point(1) } }; _map = new MapToolkit.Model.Map(mapStructure); var continentNumber = _map.ComputeContinent(); var expectedContinentCount = 1; Check.That(continentNumber).IsEqualTo(expectedContinentCount); }
public void The_number_of_continents_should_be_0_when_map_is_null() { Point[][] mapStructure = null; _map = new MapToolkit.Model.Map(mapStructure); var continentNumber = _map.ComputeContinent(); var expectedContinentCount = 0; Check.That(continentNumber).IsEqualTo(expectedContinentCount); }