살군의 보조기억 장치

Another memory device…

Xcode Unit-Test Result Macro Reference

leave a comment »

Retrieved from: Xcode help page

———————————————————————————————————————-

Important: When the expressions your test cases evaluate throw exceptions, they produce unknown errors. To test whether your code raises exceptions, create test case that explicitly check for the presence or absence or exceptions; see “Exception Tests” below.

 

Unconditional Failure

  • STFail()

Equality Tests

  • STAssertEqualObjects()
  • STAssertEquals()
  • STAssertEqualsWithAccuracy()

Nil Tests

  • STAssertNil()
  • STAssertNotNil()

Boolean Tests

  • STAssertTrue()
  • STAssertFalse()

Exception Tests

  • STAssertThrows()
  • STAssertThrowsSpecific()
  • STAssertThrowsSpecificNamed()
  • STAssertNoThrow()
  • STAssertNoThrowSpecific()
  • STAssertNoThrowSpecificNamed()
  • STAssertTrueNoThrow()
  • STAssertFalseNoThrow()

 

Advertisements

Written by gomiski

2011/10/13 at 12:32 am

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: