         waitForExpectationsWithTimeout(3, handler: nil)
 
         XCTAssertTrue(destination.cancelled)
-    }
-}
-
-class NumbersOperation: Operation, ResultOperationType {
-
-    var result: [Int] = []
-    var error: ErrorType? = .None
-
-    init(error: ErrorType? = .None) {
-        self.error = error
-        super.init()
-    }
-
-    override func execute() {
-        if let error = error {
-            finish(error)
-        }
-        else {
-            result = [0, 1, 2, 3, 4, 5 , 6 , 7, 8, 9]
-            finish()
-        }
     }
 }
 


import XCTest
@testable import Operations

class NumbersOperation: Operation, ResultOperationType {

    var result: [Int] = []
    var error: ErrorType? = .None

    init(error: ErrorType? = .None) {
        self.error = error
        super.init()
    }

    override func execute() {
        if let error = error {
            finish(error)
        }
        else {
            result = [0, 1, 2, 3, 4, 5 , 6 , 7, 8, 9]
            finish()
        }
    }
}

class MapOperationTests: OperationTests {

