//
//  ATMLogicTests.m
//  ATMLogicTests
//
//  David J. Malan
//  Harvard University
//  malan@harvard.edu
//
//  Simulates an ATM (that only accepts deposits).
//

#import "ATMLogicTests.h"
#import "Account.h"


@interface ATMLogicTests ()

// private property
@property (nonatomic, readwrite, strong) Account *account;

@end


@implementation ATMLogicTests

@synthesize account=_account;

- (void)setUp
{
    [super setUp];
    
    // Set-up code here.
    NSLog(@"setUp");
    self.account = [[Account alloc] init];
    STAssertNotNil(self.account, @"Cannot create Account instance");
}

- (void)testBalance
{
    // balance should be $0 initially
    STAssertTrue(self.account.balance == 0, @"Balance is not 0");
}

- (void)tearDown
{
    [super tearDown];

    // Tear-down code here.
    NSLog(@"tearDown");
}

@end
