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

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

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