Skip to main content
Fixed grammar
Source Link
Marco
  • 6.7k
  • 2
  • 28
  • 38

AGAsyncTestHelper is a C macro for writing unit tests with asynchronous operations and works with both SenTestingKit and XCTest.

Simple and to the point

- (void)testAsyncBlockCallback
{
    __block BOOL jobDone = NO;

    [Manager doSomeOperationOnDone:^(id data) {
        jobDone = YES; 
    }];

    WAIT_WHILE(!jobDone, 2.0);
}

AGAsyncTestHelper is a C macro for writing unit tests with asynchronous operations works with both SenTestingKit and XCTest.

Simple and to the point

- (void)testAsyncBlockCallback
{
    __block BOOL jobDone = NO;

    [Manager doSomeOperationOnDone:^(id data) {
        jobDone = YES; 
    }];

    WAIT_WHILE(!jobDone, 2.0);
}

AGAsyncTestHelper is a C macro for writing unit tests with asynchronous operations and works with both SenTestingKit and XCTest.

Simple and to the point

- (void)testAsyncBlockCallback
{
    __block BOOL jobDone = NO;

    [Manager doSomeOperationOnDone:^(id data) {
        jobDone = YES; 
    }];

    WAIT_WHILE(!jobDone, 2.0);
}
added 247 characters in body
Source Link
hfossli
  • 23k
  • 11
  • 120
  • 134

Open-source AGAsyncTestHelper, is a C macro for writing unit tests with asynchronous operations, which supposedly works with both SenTestingKit and XCTest.

Simple and to the point

- (void)testAsyncBlockCallback
{
    __block BOOL jobDone = NO;

    [Manager doSomeOperationOnDone:^(id data) {
        jobDone = YES; 
    }];

    WAIT_WHILE(!jobDone, 2.0);
}

Open-source AGAsyncTestHelper, a C macro for writing unit tests with asynchronous operations, which supposedly works with SenTestingKit

AGAsyncTestHelper is a C macro for writing unit tests with asynchronous operations works with both SenTestingKit and XCTest.

Simple and to the point

- (void)testAsyncBlockCallback
{
    __block BOOL jobDone = NO;

    [Manager doSomeOperationOnDone:^(id data) {
        jobDone = YES; 
    }];

    WAIT_WHILE(!jobDone, 2.0);
}
Source Link
Marco
  • 6.7k
  • 2
  • 28
  • 38

Open-source AGAsyncTestHelper, a C macro for writing unit tests with asynchronous operations, which supposedly works with SenTestingKit