//
//  NotAutoLayoutTests.swift
//  NotAutoLayoutTests
//
//  Created by 史翔新 on 2017/02/09.
//  Copyright © 2017年 史翔新. All rights reserved.
//

import XCTest
@testable import NotAutoLayout

class NotAutoLayoutTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testExample() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
    }
    
    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
    
}

//
//  NotAutoLayoutTests.swift
//  NotAutoLayoutTests
//
//  Created by 史翔新 on 2017/02/09.
//  Copyright © 2017年 史翔新. All rights reserved.
//

import XCTest
@testable import NotAutoLayout

class NotAutoLayoutTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testExample() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
		let view = LayoutView()
		let layout = view.nal.makeLayout { maker in maker
			.setLeft(to: 10)
			.setTop(to: 10)
			.setWidth(to: 100)
			.setHeight(to: 100)
		}
		
		let result = layout.evaluatedFrame(in: .zero)
		let expected = CGRect(x: 10, y: 10, width: 100, height: 100)
		XCTAssert(result == expected)
		
    }
    
    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
    
}

Write a very basic testExample implement
Write a very basic testExample implement
