ios - how to Unit test using XCTest for bluetooth peripherals -


i developing static library(objective c) find near bluetooth peripherals using 'centralmanager:diddiscoverperipheral' in corebluetooth framework. im new unit test , want unit test(check retrieved peripheral list correct) using xctest. understanding can't test bluetooth stuff using ios simulator. yet wanted know there way using xctest unit test above scenario.

ps: cbperipheral class not have public initializer think can't mock(create dummy cbperipherals using 'category') peripherals guess have work real devices.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -