In my custom class WLNetworkClient
I had to implement such method:
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
I do not need to use that, but I would like to test this to make 100% code coverage. Do you know how to achieve this?
I tried following way with no success:
let nc = WLNetworkClient(coder: NSCoder())
XCTAssertNotNil(nc)