blob: 1c2fca4fe1cf57345e371a21d8db5c42ac2a78a9 (
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
|
#import <Quick/Quick.h>
#import <Nimble/Nimble.h>
#import <OCMock/OCMock.h>
#import "SDLDynamicMenuUpdateRunScore.h"
QuickSpecBegin(SDLMenuRunScoreSpec)
describe(@"menuRunScore", ^{
__block SDLDynamicMenuUpdateRunScore *runScore = nil;
beforeEach(^{
NSArray<NSNumber *> *oldMenuStatus = @[@1, @2, @3];
NSArray<NSNumber *> *updatedMenuStatus = @[@3, @2, @1];
NSUInteger numberOfAdds = 5;
runScore = [[SDLDynamicMenuUpdateRunScore alloc] initWithOldStatus:oldMenuStatus updatedStatus:updatedMenuStatus score:numberOfAdds];
});
it(@"should instantiate correctly", ^{
expect(runScore.oldStatus).to(equal(@[@1, @2, @3]));
expect(runScore.updatedStatus).to(equal(@[@3, @2, @1]));
expect(runScore.score).to(equal(5));
});
});
QuickSpecEnd
|