 import XCTest
 import Delegate
 @testable import APNGKit
+
 #if canImport(UIKit)
 class ViewControllerStub {
     

        onDeinit()
    }
}
#endif

        window = nil
    }
}
#endif

#if canImport(AppKit)

class ViewController: NSViewController {
    override func loadView() {
        view = NSView(frame: .init(x: 0, y: 0, width: 100, height: 100))
    }
}

class ViewControllerStub {
    
    var window: NSWindow!
    
    func setupViewController() -> NSViewController {
        let rootViewController =  ViewController()
        return setupViewController(rootViewController)
    }
    
    func setupViewController(_ input: ViewController) -> NSViewController {

        _ = input.view
        window = NSWindow(contentRect: .init(x: 0, y: 0, width: 100, height: 100), styleMask: .borderless, backing: .buffered, defer: false)
        window.contentViewController = input
        return input
    }
    
    func resetViewController() {
        window = nil
    }
}
#endif

class APNGImageViewTests: XCTestCase {
    
