summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLOverlayTests.swift
blob: 4bdd90cd60c5b04982831b4bca10de2cf8fbaa56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import XCTest
import Mapbox

class MGLOverlayTests: XCTestCase {
    
    func testCoverage() {
        MGLSDKTestHelpers.checkTestsContainAllMethods(testClass: CustomOverlay.self, in: MGLOverlay.self)
    }
    
}

class CustomOverlay: NSObject, MGLOverlay {

    var coordinate = CLLocationCoordinate2D(latitude: 0, longitude: 0)
    var overlayBounds = MGLCoordinateBounds(sw: CLLocationCoordinate2D(latitude: 0, longitude: 0), ne: CLLocationCoordinate2D(latitude: 0, longitude: 0))
    
    func testCoordinate() {
        XCTAssertNotNil(coordinate)
    }
    
    func testOverlayBounds() {
        XCTAssertNotNil(overlayBounds)
    }
    func intersects(_ overlayBounds: MGLCoordinateBounds) -> Bool { return false }
}