Skip to content

Commit

Permalink
Add additional nil asserts in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
smileyborg committed Jun 7, 2014
1 parent 93c52a5 commit 1bae254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/AutoLayoutTests/AutoLayoutInstallationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ - (void)tearDown
- (void)testInstallNilItems
{
NSLayoutConstraint *constraint = [NSLayoutConstraint new];
XCTAssertNil(constraint.firstItem);
XCTAssertNil(constraint.secondItem);

XCTAssertThrows([constraint autoInstall], @"autoInstall should throw an exception that both items are nil.");
}
Expand Down

0 comments on commit 1bae254

Please sign in to comment.