public void Send_description_with_no_archive() { AddFile(); report.NoArchive = true; report.Reports.Enqueue(new FakeReport()); report.ProcessReports(new ReportExecuteLog(), (MySqlConnection)session.Connection, false, DateTime.Today, DateTime.Today, false); Assert.That(report.Messages.Count, Is.EqualTo(1)); var message = report.Messages[0]; var attachments = message.Attachments.Select(a => a.ContentDisposition_FileName).Implode(); Assert.That(attachments, Is.EqualTo("description.xls, Rep1.xls")); }