Ejemplo n.º 1
0
        public void ReportSendingFailure_should_increase_rejected_records_size_and_count()
        {
            collector.ReportStoredRecord(12);
            collector.ReportStoredRecord(31);
            collector.ReportStoredRecord(8);

            collector.ReportSendingFailure(2, 43);

            collector.GetCounters().RejectedRecords.Should().Be((2L, 43L));

            collector.ReportSendingFailure(1, 8);

            collector.GetCounters().RejectedRecords.Should().Be((3L, 51L));
        }