mirror of
https://github.com/TermiT/Flycut.git
synced 2025-11-18 16:00:54 +08:00
41 lines
1 KiB
Objective-C
41 lines
1 KiB
Objective-C
//
|
|
// IASSettingsStoreUserDefaultsTests.m
|
|
// IASSettingsStoreUserDefaultsTests
|
|
//
|
|
// Created by Stephan Diederich on 19.12.12.
|
|
// Copyright (c) 2012 InAppSettingsKit. All rights reserved.
|
|
//
|
|
|
|
#import <XCTest/XCTest.h>
|
|
#import "IASKSettingsStoreUserDefaults.h"
|
|
|
|
@interface IASSettingsStoreUserDefaultsTests : XCTestCase
|
|
|
|
@end
|
|
|
|
@implementation IASSettingsStoreUserDefaultsTests
|
|
|
|
- (void)setUp {
|
|
[super setUp];
|
|
|
|
// Set-up code here.
|
|
}
|
|
|
|
- (void)tearDown {
|
|
// Tear-down code here.
|
|
|
|
[super tearDown];
|
|
}
|
|
|
|
- (void)testStoreSetsCustomDefaults {
|
|
id myObject = [NSObject new];
|
|
IASKSettingsStoreUserDefaults* store = [[IASKSettingsStoreUserDefaults alloc] initWithUserDefaults:myObject];
|
|
XCTAssertEqualObjects(myObject, store.defaults, @"custom defaults not stored");
|
|
}
|
|
|
|
- (void)testStoreUsesStandardDefaults {
|
|
IASKSettingsStoreUserDefaults* store = [[IASKSettingsStoreUserDefaults alloc] init];
|
|
XCTAssertEqualObjects([NSUserDefaults standardUserDefaults], store.defaults, @"custom defaults not stored");
|
|
}
|
|
|
|
@end
|