public void TestArgumentExceptions () { var report = new MultipartReport ("disposition-notification"); Assert.Throws<ArgumentNullException> (() => new MultipartReport ((MimeEntityConstructorArgs) null)); Assert.Throws<ArgumentNullException> (() => new MultipartReport ((string) null)); Assert.Throws<ArgumentNullException> (() => new MultipartReport (null, new object[0])); Assert.Throws<ArgumentNullException> (() => new MultipartReport ("disposition-notification", null)); Assert.Throws<ArgumentNullException> (() => report.ReportType = null); Assert.Throws<ArgumentNullException> (() => report.Accept (null)); }
/// <summary> /// Visit the multipart/report MIME entity. /// </summary> /// <remarks> /// Visits the multipart/report MIME entity. /// </remarks> /// <example> /// <code language="c#" source="Examples\MimeVisitorExamples.cs" region="HtmlPreviewVisitor" /> /// </example> /// <param name="report">The multipart/report MIME entity.</param> protected internal virtual void VisitMultipartReport(MultipartReport report) { VisitMultipart(report); }
/// <summary> /// Visit the multipart/report MIME entity. /// </summary> /// <remarks> /// Visits the multipart/report MIME entity. /// </remarks> /// <example> /// <code language="c#" source="Examples\MimeVisitorExamples.cs" region="HtmlPreviewVisitor" /> /// </example> /// <param name="report">The multipart/report MIME entity.</param> protected internal virtual void VisitMultipartReport (MultipartReport report) { VisitMultipart (report); }