#if !os(tvOS)
import XCTest
import UniformTypeIdentifiers
@testable import Physarum
final class ExportedCaptureTests: XCTestCase {
func testExportTypeFromExtension() {
XCTAssertEqual(exportType(for: .file(URL(fileURLWithPath: "/t/a.png"), isVideo: false)), .png)
XCTAssertEqual(exportType(for: .file(URL(fileURLWithPath: "/t/a.heic"), isVideo: false)), .heic)
XCTAssertEqual(exportType(for: .file(URL(fileURLWithPath: "/t/a.mov"), isVideo: true)), .quickTimeMovie)
XCTAssertEqual(exportType(for: .file(URL(fileURLWithPath: "/t/a.mp4"), isVideo: true)), .mpeg4Movie)
}
func testLivePhotoExportsMotionClip() {
let out = CaptureOutput.livePhoto(still: URL(fileURLWithPath: "/t/s.heic"),
video: URL(fileURLWithPath: "/t/v.mov"))
XCTAssertEqual(exportType(for: out), .quickTimeMovie)
}
}
#endif