Sha256: 6895f6c935f4728ca95adb0af099149753998e51342f5c52ff8e891e33dddcd7

Contents?: true

Size: 730 Bytes

Versions: 34

Compression:

Stored size: 730 Bytes

Contents

import Foundation

@objc(FixtureExample)

class FixtureExample : NSObject, SlimDecisionTable {
    
    //MARK: Inputs
    
    var input = ""
    
    //MARK: <SlimDecisionTable>
    
    func execute() {
        // 1. Prepare a System Under Test (SUT) using the given inputs.
        // e.g. let system = MySystemUnderTestContext(input: input)
        // 2. Run your SUT
        // 3. Take values from the SUT and return via outputs
    }
    
    //MARK: Outputs
    
    var output: NSString? {
        get {
            switch input {
            case "foo":
                return "bar"
            case "bar":
                return "baz"
            default:
                return nil
            }
        }
    }
    
}

Version data entries

34 entries across 31 versions & 1 rubygems

Version Path
xcfit-2.0.6 Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.6 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.4 Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.4 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.3 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.3 Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.2 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.1 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-1.3.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-1.2.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-1.1.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-1.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-0.9.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift