diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-09-22 00:49:07 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-09-22 00:49:07 -0700 |
commit | 51ba8770de87d9670acab43bca52966efdb6f430 (patch) | |
tree | 5c98ee4751ee16ce2bc23a1ec69d07515c80f48f /SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m | |
parent | 52fa8db0a4386e2fbd1333e4c56f67748a02a440 (diff) | |
download | sdl_ios-51ba8770de87d9670acab43bca52966efdb6f430.tar.gz |
Removed unnecessary SDLEnum tests and updated all tests for new enums.
Diffstat (limited to 'SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m')
-rw-r--r-- | SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m index 8e74324cf..790395244 100644 --- a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLClusterModeStatusSpec.m @@ -21,27 +21,27 @@ describe(@"Getter/Setter Tests", ^ { SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] init]; testStruct.powerModeActive = @YES; - testStruct.powerModeQualificationStatus = [SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS]; - testStruct.carModeStatus = [SDLCarModeStatus CRASH]; - testStruct.powerModeStatus = [SDLPowerModeStatus IGNITION_ON_2]; + testStruct.powerModeQualificationStatus = SDLPowerModeQualificationStatusPowerModeEvaluationInProgress; + testStruct.carModeStatus = SDLCarModeStatusCrash; + testStruct.powerModeStatus = SDLPowerModeStatusIgnitionOn; expect(testStruct.powerModeActive).to(equal(@YES)); - expect(testStruct.powerModeQualificationStatus).to(equal([SDLPowerModeQualificationStatus POWER_MODE_EVALUATION_IN_PROGRESS])); - expect(testStruct.carModeStatus).to(equal([SDLCarModeStatus CRASH])); - expect(testStruct.powerModeStatus).to(equal([SDLPowerModeStatus IGNITION_ON_2])); + expect(testStruct.powerModeQualificationStatus).to(equal(SDLPowerModeQualificationStatusPowerModeEvaluationInProgress)); + expect(testStruct.carModeStatus).to(equal(SDLCarModeStatusCrash)); + expect(testStruct.powerModeStatus).to(equal(SDLPowerModeStatusIgnitionOn)); }); it(@"Should get correctly when initialized", ^ { NSMutableDictionary* dict = [@{NAMES_powerModeActive:@NO, - NAMES_powerModeQualificationStatus:[SDLPowerModeQualificationStatus POWER_MODE_OK], - NAMES_carModeStatus:[SDLCarModeStatus CRASH], - NAMES_powerModeStatus:[SDLPowerModeStatus KEY_OUT]} mutableCopy]; + NAMES_powerModeQualificationStatus:SDLPowerModeQualificationStatusPowerModeOk, + NAMES_carModeStatus:SDLCarModeStatusCrash, + NAMES_powerModeStatus:SDLPowerModeStatusKeyOut} mutableCopy]; SDLClusterModeStatus* testStruct = [[SDLClusterModeStatus alloc] initWithDictionary:dict]; expect(testStruct.powerModeActive).to(equal(@NO)); - expect(testStruct.powerModeQualificationStatus).to(equal([SDLPowerModeQualificationStatus POWER_MODE_OK])); - expect(testStruct.carModeStatus).to(equal([SDLCarModeStatus CRASH])); - expect(testStruct.powerModeStatus).to(equal([SDLPowerModeStatus KEY_OUT])); + expect(testStruct.powerModeQualificationStatus).to(equal(SDLPowerModeQualificationStatusPowerModeOk)); + expect(testStruct.carModeStatus).to(equal(SDLCarModeStatusCrash)); + expect(testStruct.powerModeStatus).to(equal(SDLPowerModeStatusKeyOut)); }); it(@"Should return nil if not set", ^ { @@ -54,4 +54,4 @@ describe(@"Getter/Setter Tests", ^ { }); }); -QuickSpecEnd
\ No newline at end of file +QuickSpecEnd |