 @testable import BFKit
 
 class UIColorExtensionTests: XCTestCase {
+    #if os(iOS)
+        let red = Color.red
+        let green = Color.green
+        let blue = Color.blue
+        let yellow = Color.yellow
+        let cyan = Color.cyan
+    #elseif os(macOS)
+        let red = Color.init(colorSpace: NSColorSpace.genericRGB, components: [1, 0, 0, 1], count: 4)
+        let green = Color.init(colorSpace: NSColorSpace.genericRGB, components: [0, 1, 0, 1], count: 4)
+        let blue = Color.init(colorSpace: NSColorSpace.genericRGB, components: [0, 0, 1, 1], count: 4)
+        let yellow = Color.init(colorSpace: NSColorSpace.genericRGB, components: [1, 1, 0, 1], count: 4)
+        let cyan = Color.init(colorSpace: NSColorSpace.genericRGB, components: [0, 1, 1, 1], count: 4)
+    #endif
+    
     override func setUp() {
         super.setUp()
     }

    func testInitHexAlpha() {
        let color = Color(hex: 0xFFFF00)
        
        XCTAssertEqual(color, Color.yellow)
    }
    
    func testInitHexAlphaFirst() {
        let color = Color(hex: "0FF")
        _ = Color(hex: "00FF", alphaFirst: true)
        _ = Color(hex: "0FF0")
        let color4 = Color(hex: "00FFFF")
        let color5 = Color(hex: "#00FFFFFF", alphaFirst: false)
        let color6 = Color(hex: "#FF00FFFF", alphaFirst: true)
        
        XCTAssertEqual(color, Color.cyan)
        //XCTAssertEqual(color2, Color.cyan)
        //XCTAssertEqual(color3, Color.cyan)
        XCTAssertEqual(color4, Color.cyan)
        XCTAssertEqual(color5, Color.cyan)
        XCTAssertEqual(color6, Color.cyan)
    }
    
    func testContrasting() {

    func testRGBA() {
        let color = RGBA(255, 0, 0, 1)
        
        XCTAssertEqual(color, red)
    }
    
    func testARGB() {
        let color = ARGB(1, 0, 255, 0)
        
        XCTAssertEqual(color, green)
    }
    
    func testRGB() {
        let color = RGB(0, 0, 255)
        
        XCTAssertEqual(color, blue)
    }
    
    func testRedComponent() {
