diff options
author | Marius Ursache <marius@marius.me.uk> | 2016-02-29 21:55:05 +1100 |
---|---|---|
committer | Marius Ursache <marius@marius.me.uk> | 2016-02-29 21:55:05 +1100 |
commit | 16831b8eb9e1947deb82118411acf0b8fd9862c8 (patch) | |
tree | 28bd01d7464bd8d02a14e2447cb674505629160e /Frameworks/QueryKit/Tests/QKQueryTests.m | |
parent | 9eb7efd01442d36f543e3056cdf060ffb35202c2 (diff) | |
download | sequelpro-16831b8eb9e1947deb82118411acf0b8fd9862c8.tar.gz sequelpro-16831b8eb9e1947deb82118411acf0b8fd9862c8.tar.bz2 sequelpro-16831b8eb9e1947deb82118411acf0b8fd9862c8.zip |
Converted QueryKit tests from SenTestingKit to XCTest
Diffstat (limited to 'Frameworks/QueryKit/Tests/QKQueryTests.m')
-rw-r--r-- | Frameworks/QueryKit/Tests/QKQueryTests.m | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Frameworks/QueryKit/Tests/QKQueryTests.m b/Frameworks/QueryKit/Tests/QKQueryTests.m index 0043e607..2064fad6 100644 --- a/Frameworks/QueryKit/Tests/QKQueryTests.m +++ b/Frameworks/QueryKit/Tests/QKQueryTests.m @@ -30,7 +30,7 @@ #import "QKTestCase.h" #import <QueryKit/QueryKit.h> -#import <SenTestingKit/SenTestingKit.h> +#import <XCTest/XCTest.h> @interface QKQueryTests : QKTestCase @end @@ -68,19 +68,19 @@ { [[self query] clear]; - STAssertNil([[self query] table], @"query table"); - STAssertNil([[self query] database], @"query database"); + XCTAssertNil([[self query] table], @"query table"); + XCTAssertNil([[self query] database], @"query database"); - STAssertTrue([[self query] useQuotedIdentifiers], @"query use quoted identifiers"); - STAssertTrue([[[self query] identifierQuote] isEqualToString:EMPTY_STRING], @"query identifier quote"); - STAssertTrue([[[self query] fields] count] == 0, @"query fields"); - STAssertTrue([[[self query] parameters] count] == 0, @"query parameters"); - STAssertTrue([[[self query] updateParameters] count] == 0, @"query update parameters"); - STAssertTrue([[[self query] groupByFields] count] == 0, @"query group by fields"); - STAssertTrue([[[self query] orderByFields] count] == 0, @"query order by fields"); + XCTAssertTrue([[self query] useQuotedIdentifiers], @"query use quoted identifiers"); + XCTAssertTrue([[[self query] identifierQuote] isEqualToString:EMPTY_STRING], @"query identifier quote"); + XCTAssertTrue([[[self query] fields] count] == 0, @"query fields"); + XCTAssertTrue([[[self query] parameters] count] == 0, @"query parameters"); + XCTAssertTrue([[[self query] updateParameters] count] == 0, @"query update parameters"); + XCTAssertTrue([[[self query] groupByFields] count] == 0, @"query group by fields"); + XCTAssertTrue([[[self query] orderByFields] count] == 0, @"query order by fields"); - STAssertEquals([[self query] queryType], QKUnknownQuery, @"query type"); - STAssertEquals([[self query] queryDatabase], QKDatabaseUnknown, @"query database"); + XCTAssertEqual([[self query] queryType], QKUnknownQuery, @"query type"); + XCTAssertEqual([[self query] queryDatabase], QKDatabaseUnknown, @"query database"); } @end |