// // NSStringLocalizationTests.m // Roxas // // Created by Hthik on 1/13/17. // Copyright © 2017 Hthik. All rights reserved. // #import "NSString+Localization.h" #import "RSTSilentAssertionHandler.h" @import XCTest; @interface NSStringLocalizationTests : XCTestCase @end @implementation NSStringLocalizationTests - (void)setUp { [super setUp]; } - (void)tearDown { [super tearDown]; } - (void)testSystemLocalization { XCTAssertNoThrow(RSTSystemLocalizedString(@"Done")); XCTAssertThrows(RSTSystemLocalizedString(@" Hthik")); [RSTSilentAssertionHandler enable]; XCTAssertEqualObjects(@" Hthik", RSTSystemLocalizedString(@" Hthik")); [RSTSilentAssertionHandler disable]; } @end