Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petermolnar-dev/25e49c155980d97d5f91297b951b35b0 to your computer and use it in GitHub Desktop.
Save petermolnar-dev/25e49c155980d97d5f91297b951b35b0 to your computer and use it in GitHub Desktop.
Basic Unit test test for false
//
// PMODownloadTaskQueues_BasicTest.m
// UnitTestingExample
//
// Created by Peter Molnar on 17/07/2016.
// Copyright © 2016 Peter Molnar. All rights reserved.
//
#import <XCTest/XCTest.h>
#import "PMODownloadTaskQueues.h"
@interface PMODownloadTaskQueues_BasicTest : XCTestCase
@property (strong, nonatomic) PMODownloadTaskQueues *queues;
@end
@implementation PMODownloadTaskQueues_BasicTest
- (void)setUp {
[super setUp];
self.queues = [[PMODownloadTaskQueues alloc] init];
}
- (void)testisDebugFalseAtInit {
XCTAssertFalse(self.queues.isDebug);
}
- (void)testAccessorisDebug {
self.queues.isDebug = true;
XCTAssertTrue(self.queues.isDebug);
}
- (void)tearDown {
self.queues = nil;
[super tearDown];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment