Exemplo n.º 1
0
    def test_givenAMapContainingOneShapeAndADifferentShapeWhenFindingSimilarShapeInMapWithTheDifferentShapeThenReturnNone(self):
        myMap = Map()
        myMap.addShape(self.firstShape)

        similarShapeInMap = myMap.findSimilarShape(self.differentShape)
        self.assertEqual(None, similarShapeInMap)
Exemplo n.º 2
0
    def test_givenAMapContainingOneShapeAndSimilarShapeWhenFindingSimilarShapeInMapWithTheSimilarShapeThenReturnTheShapeContainedInMap(self):
        myMap = Map()
        myMap.addShape(self.firstShape)

        similarShapeInMap = myMap.findSimilarShape(self.secondShape)
        self.assertEqual(self.firstShape, similarShapeInMap)