Created
July 17, 2016 19:35
-
-
Save petermolnar-dev/25e49c155980d97d5f91297b951b35b0 to your computer and use it in GitHub Desktop.
Basic Unit test test for false
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
// | |
// 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