Last active
December 7, 2018 11:55
-
-
Save Juanpe/0a332b315701dea350deab410db0c03d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewControllerTests: XCTestCase { | |
var sut: ViewController! | |
override func setUp() { | |
super.setUp() | |
sut = ViewController(locationProvider: CLLocationManager()) | |
} | |
override func tearDown() { | |
sut = nil | |
super.tearDown() | |
} | |
func testRequestUserLocation() { | |
sut.requestUserLocation() | |
XCTAssertNotNil(sut.userLocation) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment