// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #import #import "OCTFriendRequest.h" @interface OCTFriendRequestTests : XCTestCase @end @implementation OCTFriendRequestTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testDate { OCTFriendRequest *request = [OCTFriendRequest new]; request.dateInterval = 12345; NSDate *date = [request date]; XCTAssertEqual([date timeIntervalSince1970], 12345); } @end