diff options
Diffstat (limited to 'SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m')
-rwxr-xr-x | SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m new file mode 100755 index 000000000..6d42d114f --- /dev/null +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLDeleteInteractionChoiceSetSpec.m @@ -0,0 +1,42 @@ +// +// SDLDeleteInteractionChoiceSetSpec.m +// SmartDeviceLink + + +#import <Foundation/Foundation.h> + +#import <Quick/Quick.h> +#import <Nimble/Nimble.h> + +#import "SDLDeleteInteractionChoiceSet.h" +#import "SDLNames.h" + +QuickSpecBegin(SDLDeleteInteractionChoiceSetSpec) + +describe(@"Getter/Setter Tests", ^ { + it(@"Should set and get correctly", ^ { + SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] init]; + + testRequest.interactionChoiceSetID = @20314; + + expect(testRequest.interactionChoiceSetID).to(equal(@20314)); + }); + + it(@"Should get correctly when initialized", ^ { + NSMutableDictionary* dict = [@{NAMES_request: + @{NAMES_parameters: + @{NAMES_interactionChoiceSetID:@20314}, + NAMES_operation_name:NAMES_DeleteInteractionChoiceSet}} mutableCopy]; + SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] initWithDictionary:dict]; + + expect(testRequest.interactionChoiceSetID).to(equal(@20314)); + }); + + it(@"Should return nil if not set", ^ { + SDLDeleteInteractionChoiceSet* testRequest = [[SDLDeleteInteractionChoiceSet alloc] init]; + + expect(testRequest.interactionChoiceSetID).to(beNil()); + }); +}); + +QuickSpecEnd
\ No newline at end of file |