summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m
diff options
context:
space:
mode:
authorBrett W <geekman3454@protonmail.com>2017-08-29 13:14:43 -0400
committerBrett W <geekman3454@protonmail.com>2017-08-29 13:14:43 -0400
commit34af146be4dd1e6ad638f3f9b5a8ffb773ea133b (patch)
tree29b52a1ca9473abf731296ba164b03abbbd3028b /SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m
parentdfac498da4bfd3d23df1aabe45e10692179ab991 (diff)
downloadsdl_ios-34af146be4dd1e6ad638f3f9b5a8ffb773ea133b.tar.gz
added in tests initing with nil data
Diffstat (limited to 'SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m')
-rw-r--r--SmartDeviceLinkTests/ProtocolSpecs/SDLControlFramePayloadAudioStartServiceAckSpec.m15
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