?????????TestDemoTests??????′???UrlTests?????????????????????????в??????????????????Targets???TestDemoTests???????

????????????????XCTest???????????????XCTestCase??????????????
import XCTest
class UrlTests: XCTestCase {
var urlInstance = Url(baseUrl: "http://localhost:8080/api/")
func testShouldGetCorrectPathWhenNoSegmentProvided() {
let resourcePath = "customers"
let result = urlInstance.getActualPathFrom(resourcePath?? segments: [String:String]())
XCTAssertEqual(result?? "http://localhost:8080/api/customers"?? "Can not get corrent path when no segments provided")
}
func testGetCorrectPathGivenOneSegment() {
let resourcePath = "customer/{id}"
let result = urlInstance.getActualPathFrom(resourcePath?? segments: ["id": "10"]);
XCTAssertEqual(result?? "http://localhost:8080/api/customer/10"?? "Can not get corrent path when only one segment provided")
}
}
??????Command??U??в???