forked from Xcode-Snippets/Objective-C
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added snippets for unit testing methods
- Loading branch information
1 parent
f14e03d
commit e6061bd
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// XCT Assert Equals | ||
// Assert equals for XCTest | ||
// | ||
// Platform: All | ||
// Language: Objective-C | ||
// Completion Scope: Function or Method | ||
|
||
XCTAssertEqual(<#expected#>, <#actual#>, <#message#>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// XCT Assert Nil | ||
// Assert for XCTest | ||
// | ||
// Platform: All | ||
// Language: Objective-C | ||
// Completion Scope: Function or Method | ||
|
||
XCTAssertNil(<#expression#>, <#message#>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// XCT Assert Not Nil | ||
// Assert not nil for XCTest | ||
// | ||
// Platform: All | ||
// Language: Objective-C | ||
// Completion Scope: Function or Method | ||
|
||
XCTAssertNotNil(<#expression#>, <#message#>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// XCT Assert True | ||
// Assert true for XCTest | ||
// | ||
// Platform: All | ||
// Language: Objective-C | ||
// Completion Scope: Function or Method | ||
|
||
XCTAssertTrue(<#expression#>, <#message#>); |