used specialized asserts in test cases

This commit is contained in:
michael starke
2017-09-18 11:19:11 +02:00
parent 4493e8cb2c
commit 4dce9ac5d4
3 changed files with 11 additions and 14 deletions

View File

@@ -36,7 +36,7 @@
MPAutotypeContext *context = [[MPAutotypeContext alloc] initWithEntry:self.entry andSequence:@"{DELAY 200}"];
NSArray *commands = [MPAutotypeCommand commandsForContext:context];
XCTAssertTrue(commands.count == 1);
XCTAssertEqual(commands.count, 1);
/* {DELAY 200} */
XCTAssertTrue([commands.firstObject isKindOfClass:[MPAutotypeDelay class]], @"Command is Delay command");
MPAutotypeDelay *delay = commands.firstObject;