GildedRose-Refactoring-Kata/swift/Tests/GildedRoseTests/GildedRoseTests.swift
2020-08-17 23:08:28 +02:00

23 lines
465 B
Swift

@testable import GildedRose
import XCTest
class GildedRoseTests: XCTestCase {
func testFoo() {
let items = [Item(name: "foo", sellIn: 0, quality: 0)]
let app = GildedRose(items: items);
app.updateQuality();
XCTAssertEqual("foo", app.items[0].name);
}
static var allTests : [(String, (GildedRoseTests) -> () throws -> Void)] {
return [
("testFoo", testFoo),
]
}
}