Started getting Mac Project to work

This commit is contained in:
Matt Coneybeare
2014-09-16 18:45:29 -04:00
parent 1c47e3a9a4
commit afb9b54dc0
18 changed files with 520 additions and 305 deletions
+19 -22
View File
@@ -1,30 +1,16 @@
// ParameterEncodingTests.swift
//
// Copyright (c) 2014 Armchair (http://github.com/UrbanApps/Armchair)
// ArmchairTests.swift
// ArmchairTests
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// Created by Matt Coneybeare on 9/16/14.
// Copyright (c) 2014 Armchair. All rights reserved.
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
import Foundation
import Armchair
import UIKit
import XCTest
import Armchair
class ArmchairTestCase: XCTestCase {
class ArmchairTests: XCTestCase {
var appID: String! = "987654321"
@@ -33,9 +19,20 @@ class ArmchairTestCase: XCTestCase {
Armchair.appID(appID)
}
// MARK: -
func testAppIDSetProperly() {
XCTAssertEqual(Armchair.appID(), appID, "appID should be as set")
XCTAssertEqual(Armchair.appID, appID, "appID should be as set")
}
// Need to figure out a way to get the test suite to load the correct info.plist bundle for the test app
// func testAppNameReadFromBundleCorrectly() {
// XCTAssertEqual(Armchair.appName(), "Armchair Tests")
// }
func testAppNameNotNil() {
XCTAssertNotNil(Armchair.appName(), "appName should never be nil")
}
}
+2
View File
@@ -20,5 +20,7 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleDisplayName</key>
<string>Armchair Tests</string>
</dict>
</plist>