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