Daily iOS
Testing

XCTestCase instance lifecycle

Which are problems with the test class below? Select all that apply.

final class ImageCacheTests: XCTestCase {
    let cache = ImageCache(directory: .temporaryDirectory, limitMB: 500)
    func testStore() { /* uses cache */ }
    func testEvict() { /* uses cache */ }
    // ... 30 tests
}

Pick all that apply

Submit