You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
pEpObjCAdapter/iOSTests/PepTests.m

48 lines
989 B

//
// PepTests.m
// pEpiOSAdapter
//
// Created by Dirk Zimmermann on 01/08/16.
// Copyright © 2016 p≡p. All rights reserved.
//
#import <XCTest/XCTest.h>
#import "pEpiOSAdapter/PEPObjCAdapter.h"
#import "pEpiOSAdapter/PEPSession.h"
#import "pEpiOSAdapter/PEPLanguage.h"
@interface PepTests : XCTestCase
@end
@implementation PepTests
- (void)setUp {
[super setUp];
[PEPObjCAdapter setupTrustWordsDB:[NSBundle bundleForClass:[self class]]];
}
- (void)tearDown {
[super tearDown];
}
- (void)testSessionFinalization {
PEPSession *session = [[PEPSession alloc] init];
session = nil;
}
- (void)testLanguageList {
PEPSession *session = [[PEPSession alloc] init];
NSArray<PEPLanguage *> *langs = [session languageList];
XCTAssertGreaterThan(langs.count, 0);
BOOL foundEn = NO;
for (PEPLanguage *lang in langs) {
if ([lang.code isEqualToString:@"en"]) {
foundEn = YES;
}
}
XCTAssertTrue(foundEn);
}
@end