Files
AppearanceKit-mirror/Example/Tests/Tests.swift
2017-09-07 09:52:17 +03:00

35 lines
986 B
Swift

import UIKit
import XCTest
import AppearanceKit
import ContentKit
class Tests: 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.
var att: AttributedText = "hello"
XCTAssert(att.content == "hello")
att.set(attribute: AttributedText.Attribute.backgroundColor(RedColor()))
print("attributedText: \(att)")
XCTAssert(true, "Pass")
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measure() {
// Put the code you want to measure the time of here.
}
}
}