Gio Lodi 1/19/2016

Testing Delegates in Swift with XCTest

Read Original

This technical tutorial explains how to test delegate methods in Swift, particularly for asynchronous operations. It demonstrates combining XCTestExpectation with the Spy test pattern to verify that an object correctly calls its delegate, providing example code for a test delegate spy and the corresponding XCTestCase.

Testing Delegates in Swift with XCTest

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser