mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 08:12:28 +00:00
Setup for UnitTests
This commit is contained in:
25
MacPassTests/MPDatabaseCreation.m
Normal file
25
MacPassTests/MPDatabaseCreation.m
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// MPDatabaseCreation.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 10.07.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPDatabaseCreation.h"
|
||||
#import "MPDocument.h"
|
||||
|
||||
@implementation MPDatabaseCreation
|
||||
|
||||
- (void)testCreateDatabaseVersion1 {
|
||||
|
||||
}
|
||||
|
||||
- (void)testCreateDatabaseVersion2 {
|
||||
MPDocument *document = [[MPDocument alloc] initWithVersion:MPDatabaseVersion4];
|
||||
STAssertNotNil(document, @"Document should be created");
|
||||
STAssertTrue(document.version == MPDatabaseVersion4, @"Database should be Version2");
|
||||
STAssertNotNil(document.treeV4, @"Database Tree needs to be Kdb4Tree");
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user