         XCTAssertEqual(theme.background.color, NSColor.white.usingColorSpace(.genericRGB))
         XCTAssertEqual(theme.lineHighlight.color.brightnessComponent, 0.94, accuracy: 0.01)
         XCTAssertNil(theme.secondarySelectionColor)
+        XCTAssertFalse(theme.isDarkTheme)
         
         for type in SyntaxType.allCases {
             XCTAssertGreaterThan(theme.style(for: type)!.color.hueComponent, 0)

    
    func loadThemeWithName(_ name: String) throws -> Theme? {
        
        let url = self.bundle.url(forResource: name, withExtension: UTType.cotTheme.preferredFilenameExtension, subdirectory: themeDirectoryName)
        
        return try Theme.theme(contentsOf: url!)
    }

    /// test if all of bundled themes are valid
    func testBundledThemes() throws {
        
        let themeDirectoryURL = self.bundle.url(forResource: self.themeDirectoryName, withExtension: nil)!
        let urls = try FileManager.default.contentsOfDirectory(at: themeDirectoryURL, includingPropertiesForKeys: nil, options: [.skipsSubdirectoryDescendants, .skipsHiddenFiles])
            .filter { UTType.cotTheme.preferredFilenameExtension == $0.pathExtension }
        
        XCTAssertFalse(urls.isEmpty)
        
        for url in urls {
            XCTAssertNoThrow(try Theme.theme(contentsOf: url))
        }
    }
    
