Antidote/local_pod_repo/objcTox/Tests/OCTFriendRequestTests.m
2024-02-22 21:43:11 +02:00

38 lines
859 B
Objective-C

// 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 <XCTest/XCTest.h>
#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