Office 2010 for Mac: What’s New and How to Get it. The latest version of Microsoft Office for Mac is. Free download ms office 2010 full version software/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "IGListDiffable.h"
@class IGListSectionController;
@interface IGListDiffableTests : XCTestCase
@property (nonatomic, strong) IGListSectionController *listSectionController;
@property (nonatomic, strong) IGListDiffable *listDiffable;
@end
@implementation IGListDiffableTests
- (void)setUp {
[super setUp];
self.listSectionController = [[IGListSectionController alloc] init];
self.listDiffable = [[IGListDiffable alloc] init];
}
- (void)tearDown {
self.listSectionController = nil;
self.listDiffable = nil;
[super tearDown];
}
- (void)testDiffableHasNoDiffs_InnerObjects {
[self.listDiffable insertDiffableObject:@[@1] deleteDiffableObject:@[@2]];
IGListDiffable *listDiffable = self.listDiffable;
NSArray *diffableObjects = listDiffable.diffableObjects;
XCTAssertEqual(diffableObjects.count, 2);
XCTAssertEqual(diffableObjects[0], @[@1]);
XCTAssertEqual(diffableObjects[1], @[@2]);
}
- (void)testDiffableHasOneDiff_InnerObjects {
[self.listDiffable insertDiffableObject:@[@1] deleteDiffableObject:@[@2]];
IGListDiffable *listDiffable = self.listDiffable;
NSArray *diffableObjects = listDiffable.diffableObjects;
XCTAssertEqual(diffableObjects.count, 1);
XCT be359ba680
Related links:
Comments