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-10.2.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-10.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-8.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-7.1.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-7.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-6.1.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-6.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-5.0.0 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.9 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.8 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.7 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.6 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.5 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.4 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.3 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.2 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-4.0.1 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.9 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.8 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift
xcfit-2.0.7 XCFit_Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift