forked from appsquickly/XcodeEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXCSubProjectDefinitionTests.m
More file actions
47 lines (34 loc) · 1.15 KB
/
XCSubProjectDefinitionTests.m
File metadata and controls
47 lines (34 loc) · 1.15 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
38
39
40
41
42
43
44
45
46
47
////////////////////////////////////////////////////////////////////////////////
//
// 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 "XCProject.h"
#import "XCSubProjectDefinition.h"
#import "XCTestResourceUtils.h"
@interface XCSubProjectDefinitionTests : XCTestCase
@end
@implementation XCSubProjectDefinitionTests
{
XCProject *_project;
}
- (void)setUp
{
_project = [[XCProject alloc] initWithFilePath:XCSample1XcodeProjectPath()];
}
#pragma mark - object creation
- (void)test_allows_initialization_with_name_and_path
{
XCSubProjectDefinition
*subProjectDefinition = [[XCSubProjectDefinition alloc]
initWithName:@"HelloBoxy" path:XCBox2dSampleContainingFolderPath() parentProject:_project];
XCTAssertNotNil(subProjectDefinition);
XCTAssertEqualObjects(subProjectDefinition.projectFileName, @"HelloBoxy.xcodeproj");
}
@end