forked from appsquickly/XcodeEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXCKeyBuilderTests.m
More file actions
37 lines (27 loc) · 1.02 KB
/
XCKeyBuilderTests.m
File metadata and controls
37 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2012 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
#import <XCTest/XCTest.h>
#import "XCKeyBuilder.h"
@interface XCKeyBuilderTests : XCTestCase
@end
@implementation XCKeyBuilderTests
/* ====================================================================================================================================== */
#pragma mark - md5sum hash
- (void)test_returns_an_md5_hash_for_an_NSData_instance
{
NSString* requiresKey = @"ESA_Sales_Customer_Browse_ViewController.h";
XCKeyBuilder* builtKey = [XCKeyBuilder forItemNamed:requiresKey];
NSString* key = [builtKey build];
NSLog(@"Key: %@", key);
XCTAssertNotNil(key);
XCTAssertEqual(key.length, 24);
}
@end