Skip to content

carsten-wenderdel/TestSchedulerDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TestSchedulerDemo

This repository contains demonstration code for my Medium article iOS Unit Tests and Asynchronous Calls.

A simple class Delayer using DispatchQueue.main.asyncAfter is refactored to allow better unit testing.

The refactoring is done twice, first with ReactiveSwift, second with Combine. The ReactiveSwift part uses a global variable to access the TestScheduler, the Combine part uses Constructor Injection.

Releases

No releases published

Packages

No packages published

Languages