diff options
author | Brett W <geekman3454@protonmail.com> | 2017-08-29 13:14:43 -0400 |
---|---|---|
committer | Brett W <geekman3454@protonmail.com> | 2017-08-29 13:14:43 -0400 |
commit | 34af146be4dd1e6ad638f3f9b5a8ffb773ea133b (patch) | |
tree | 29b52a1ca9473abf731296ba164b03abbbd3028b /SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m | |
parent | dfac498da4bfd3d23df1aabe45e10692179ab991 (diff) | |
download | sdl_ios-34af146be4dd1e6ad638f3f9b5a8ffb773ea133b.tar.gz |
added in tests initing with nil data
Diffstat (limited to 'SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m')
-rw-r--r-- | SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m index a168fc39d..b3b59d41c 100644 --- a/SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m +++ b/SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m @@ -57,4 +57,19 @@ describe(@"Test decoding data", ^{ }); }); +describe(@"Test nil data", ^{ + __block SDLControlFramePayloadAudioStartServiceAck *testPayload = nil; + __block NSData *testData = nil; + + beforeEach(^{ + + testPayload = [[SDLControlFramePayloadAudioStartServiceAck alloc] initWithData:testData]; + }); + + it(@"should output the correct params", ^{ + expect(testPayload.mtu).to(equal(-1)); + expect(testPayload.data.length).to(equal(0)); + }); +}); + QuickSpecEnd |