     }
 
     func test_NSIntersectionRect() {
-        let r1 = NSRect(x: CGFloat(1.2), y: CGFloat(3.1), width: CGFloat(10.0), height: CGFloat(10.0))
-        let r2 = NSRect(x: CGFloat(-2.3), y: CGFloat(-1.5), width: CGFloat(1.0), height: CGFloat(1.0))
-        let r3 = NSRect(x: CGFloat(10.2), y: CGFloat(2.5), width: CGFloat(5.0), height: CGFloat(5.0))
-
-        XCTAssertTrue(NSIsEmptyRect(r1.intersection(r2)))
-
-        let r4 = r1.intersection(r3)
+        let r1 = NSMakeRect(CGFloat(1.2), CGFloat(3.1), CGFloat(10.0), CGFloat(10.0))
+        let r2 = NSMakeRect(CGFloat(-2.3), CGFloat(-1.5), CGFloat(1.0), CGFloat(1.0))
+        let r3 = NSMakeRect(CGFloat(10.2), CGFloat(2.5), CGFloat(5.0), CGFloat(5.0))
+
+        XCTAssertTrue(NSIsEmptyRect(NSIntersectionRect(r1, r2)))
+
+        let r4 = NSIntersectionRect(r1, r3)
         XCTAssertEqual(r4.origin.x, CGFloat(10.2))
         XCTAssertEqual(r4.origin.y, CGFloat(3.1))
         XCTAssertEqual(r4.size.width, CGFloat(1.0))

    }

    func test_NSUnionRect() {
        let r1 = NSRect(x: CGFloat(1.2), y: CGFloat(3.1), width: CGFloat(10.0), height: CGFloat(10.0))
        let r2 = NSRect(x: CGFloat(10.2), y: CGFloat(2.5), width: CGFloat(5.0), height: CGFloat(5.0))

        XCTAssertTrue(NSIsEmptyRect(NSRect.zero.union(NSRect.zero)))
        XCTAssertTrue(NSEqualRects(r1, r1.union(NSRect.zero)))
        XCTAssertTrue(NSEqualRects(r2, NSRect.zero.union(r2)))

        let r3 = r1.union(r2)
        XCTAssertEqual(r3.origin.x, CGFloat(1.2))
        XCTAssertEqual(r3.origin.y, CGFloat(2.5))
        XCTAssertEqual(r3.size.width, CGFloat(14.0))

        let stringSize = "{-105.7, -24.3}"
        let stringRect = "{{-0.6, -5.4}, {-105.7, -24.3}}"
        
        let expectedPoint = NSMakePoint(CGFloat(-0.6), CGFloat(-5.4))
        let point = NSPointFromString(stringPoint)
        XCTAssertTrue(_NSPoint(expectedPoint, equalsToPoint: point),
            "\(NSStringFromPoint(point)) is not equal to expected \(NSStringFromPoint(expectedPoint))")
        
        let expectedSize = NSMakeSize(CGFloat(-105.7), CGFloat(-24.3))
        let size = NSSizeFromString(stringSize)
        XCTAssertTrue(_NSSize(expectedSize, equalsToSize: size),
                       "\(NSStringFromSize(size)) is not equal to expected \(NSStringFromSize(expectedSize))")
        
        let expectedRect = NSMakeRect(CGFloat(-0.6), CGFloat(-5.4), CGFloat(-105.7), CGFloat(-24.3))
        let rect = NSRectFromString(stringRect)
        XCTAssertTrue(_NSRect(expectedRect, equalsToRect: rect),
                       "\(NSStringFromRect(rect)) is not equal to expected \(NSStringFromRect(expectedRect))")
