     }
 }
 
+class BlockResultOperationTests: OperationTests {
+
+    func test__block_result_operation() {
+        var _numbers: [Int] = []
+        let numbersOp = NumbersOperation()
+        let blockOp = BlockResultOperation { (numbers: [Int]) in
+            _numbers = numbers
+        }
+        blockOp.injectResultFromDependency(numbersOp) { operation, dependency, _ in
+            operation.result = dependency.result
+        }
+
+        addCompletionBlockToTestOperation(blockOp, withExpectation: expectationWithDescription("Test: \(__FUNCTION__)"))
+        runOperations(numbersOp, blockOp)
+        waitForExpectationsWithTimeout(3, handler: nil)
+
+        XCTAssertEqual(_numbers, [0, 1, 2, 3, 4, 5 , 6 , 7, 8, 9])
+    }
+
+    
+}
 
 
 


import XCTest
@testable import Operations

class MapOperationTests: OperationTests {


        waitForExpectationsWithTimeout(3, handler: nil)

        XCTAssertTrue(destination.cancelled)
    }
}

