コード例 #1
0
    def test_givenAMapContainingOneShapeAndADifferentShapeWhenFindingSimilarShapeInMapWithTheDifferentShapeThenReturnNone(self):
        myMap = Map()
        myMap.addShape(self.firstShape)

        similarShapeInMap = myMap.findSimilarShape(self.differentShape)
        self.assertEqual(None, similarShapeInMap)
コード例 #2
0
    def test_givenAMapContainingOneShapeAndSimilarShapeWhenFindingSimilarShapeInMapWithTheSimilarShapeThenReturnTheShapeContainedInMap(self):
        myMap = Map()
        myMap.addShape(self.firstShape)

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