示例#1
0
 def test_given_island_type_and_color_when_matching_same_type_and_color_then_match_is_true(self):
     island = PolygonalIsland(IslandType.CIRCLE, IslandColor.RED, self.SAMPLE_COORDINATE, self.SAMPLE_COORDINATE)
     assert_true(island.matches(IslandDescriptor(IslandType.CIRCLE, IslandColor.RED)))
示例#2
0
 def test_given_island_type_when_matching_different_type_then_match_is_false(self):
     island = PolygonalIsland(IslandType.CIRCLE, IslandColor.RED, self.SAMPLE_COORDINATE, self.SAMPLE_COORDINATE)
     assert_false(island.matches(IslandDescriptor(IslandType.SQUARE, IslandColor.ANY)))