• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Converting SenTesting framework tests to XCTests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting SenTesting framework tests to XCTests


  • Subject: Converting SenTesting framework tests to XCTests
  • From: William Squires <email@hidden>
  • Date: Thu, 10 Jul 2014 14:31:25 -0500

I'm trying to convert some code that used the old(er) SenTesting framework. Now I want to use the XCTest stuff. I have the following line:

STAssertEquals(<int>, <int>, NULL); // <int> is just a int-type variable or constant

I figure the closest is:

XCTAssertEquals, but what does the NULL in the above line do? The 3rd argument for XCTAssertEquals is (I believe) (NSString *), in which case a "nil" should work, but Xcode complains. For now, I just have:

XCTAssertEquals(<int>, <int>, @"");

but this seems ugly.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Converting SenTesting framework tests to XCTests
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Problem getting events when adding Subviews
  • Next by Date: Converting database to Core Data
  • Previous by thread: Problem getting events when adding Subviews
  • Next by thread: Re: Converting SenTesting framework tests to XCTests
  • Index(es):
    • Date
    • Thread