//
// AUTOGENERATED FILE
// This code was generated by SwiftSpec
//
// Changes to this file may cause
// incorrect behaviour and will be lost
// if the file is regenerated.
//

import XCTest
import SwiftSpec

class InEveryScenarioANewScenarioContextIsAvailableTests : XCTestCase {
var testRunner:TestRunner!
var scenarioContext:ScenarioContext!

override func setUp() {
super.setUp()
scenarioContext = ScenarioContextImplementation()
scenarioContext.featureTags = []
testRunner = TestRunner(scenarioContext: scenarioContext)
}

override func tearDown() {
testRunner = nil
scenarioContext = nil
super.tearDown()
}

func testDataAddedToTheScenarioContextIsAvailableInSubsequentSteps() {
do {
try testRunner.executeStep(.given, "that the value 'foo' is added to the current scenario context using the key 'bar'")
try testRunner.executeStep(.then, "the current scenario context returns the value 'foo' for the key 'bar'")
} catch {
XCTFail("\(error)")
}
}
func testTheScenarioContextIsClearedForEachScenario() {
do {
try testRunner.executeStep(.given, "a new scenario")
try testRunner.executeStep(.then, "the current scenario context returns nil for the key 'bar'")
} catch {
XCTFail("\(error)")
}
}
}