AppCenterAnalytics/AppCenterAnalyticsTests/MSACAnalyticsTransmissionTargetTests.m [201:225]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  __block NSString *actualType;
  __block NSString *actualName;
  __block MSACFlags actualFlags;
  NSString *expectedName = @"event";
  id channelUnitMock = OCMProtocolMock(@protocol(MSACChannelUnitProtocol));
  OCMStub([self.channelGroupMock addChannelUnitWithConfiguration:OCMOCK_ANY]).andReturn(channelUnitMock);
  OCMStub([[channelUnitMock ignoringNonObjectArgs] enqueueItem:[OCMArg isKindOfClass:[MSACEventLog class]] flags:(MSACFlags)0])
      .andDo(^(NSInvocation *invocation) {
        MSACEventLog *log;
        [invocation getArgument:&log atIndex:2];
        actualType = log.type;
        actualName = log.name;
        MSACFlags flags;
        [invocation getArgument:&flags atIndex:3];
        actualFlags = flags;
      });
  MSACAnalyticsTransmissionTarget *sut = [[MSACAnalyticsTransmissionTarget alloc] initWithTransmissionTargetToken:kMSACTestTransmissionToken
                                                                                                     parentTarget:nil
                                                                                                     channelGroup:self.channelGroupMock];
  NSString *appSecret = MSAC_UUID_STRING;
  [MSACAppCenter configureWithAppSecret:appSecret];
  [[MSACAnalytics sharedInstance] startWithChannelGroup:self.channelGroupMock
                                              appSecret:appSecret
                                transmissionTargetToken:nil
                                        fromApplication:YES];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



AppCenterAnalytics/AppCenterAnalyticsTests/MSACAnalyticsTransmissionTargetTests.m [353:377]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  __block NSString *actualType;
  __block NSString *actualName;
  __block MSACFlags actualFlags;
  NSString *expectedName = @"event";
  id channelUnitMock = OCMProtocolMock(@protocol(MSACChannelUnitProtocol));
  OCMStub([self.channelGroupMock addChannelUnitWithConfiguration:OCMOCK_ANY]).andReturn(channelUnitMock);
  OCMStub([[channelUnitMock ignoringNonObjectArgs] enqueueItem:[OCMArg isKindOfClass:[MSACEventLog class]] flags:(MSACFlags)0])
      .andDo(^(NSInvocation *invocation) {
        MSACEventLog *log;
        [invocation getArgument:&log atIndex:2];
        actualType = log.type;
        actualName = log.name;
        MSACFlags flags;
        [invocation getArgument:&flags atIndex:3];
        actualFlags = flags;
      });
  MSACAnalyticsTransmissionTarget *sut = [[MSACAnalyticsTransmissionTarget alloc] initWithTransmissionTargetToken:kMSACTestTransmissionToken
                                                                                                     parentTarget:nil
                                                                                                     channelGroup:self.channelGroupMock];
  NSString *appSecret = MSAC_UUID_STRING;
  [MSACAppCenter configureWithAppSecret:appSecret];
  [[MSACAnalytics sharedInstance] startWithChannelGroup:self.channelGroupMock
                                              appSecret:appSecret
                                transmissionTargetToken:nil
                                        fromApplication:YES];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



