blob: c6e471fc4591e513cf28cba0cd763142497f25ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//
// SDLDeleteFileSpec.m
// SmartDeviceLink
#import <Foundation/Foundation.h>
#import <Quick/Quick.h>
#import <Nimble/Nimble.h>
#import "SDLDeleteFile.h"
#import "SDLNames.h"
QuickSpecBegin(SDLDeleteFileSpec)
describe(@"Getter/Setter Tests", ^ {
it(@"Should set and get correctly", ^ {
SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] init];
testRequest.syncFileName = @"synchro";
expect(testRequest.syncFileName).to(equal(@"synchro"));
});
it(@"Should get correctly when initialized", ^ {
NSMutableDictionary* dict = [@{NAMES_request:
@{NAMES_parameters:
@{NAMES_syncFileName:@"synchro"},
NAMES_operation_name:NAMES_DeleteFile}} mutableCopy];
SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] initWithDictionary:dict];
expect(testRequest.syncFileName).to(equal(@"synchro"));
});
it(@"Should return nil if not set", ^ {
SDLDeleteFile* testRequest = [[SDLDeleteFile alloc] init];
expect(testRequest.syncFileName).to(beNil());
});
});
QuickSpecEnd
|