Example #1
0
 public void HandlerArgumentXlsxSummaryCannotBeNull(IXlsxExporterHandler benchmarkDotnetXlsxHandler)
 {
     using (var ms = new MemoryStream())
     {
         using (var spreadsheetDocument = SpreadsheetDocument.Create(ms, SpreadsheetDocumentType.Workbook))
         {
             var ex = Record.Exception(() => benchmarkDotnetXlsxHandler.Handle(new XlsxSpreadsheetDocument(spreadsheetDocument), null));
             Assert.NotNull(ex);
         }
     }
 }
Example #2
0
        public void HandlerArgumentXlsxSpreadsheetDocumentCannotBeNull(IXlsxExporterHandler benchmarkDotnetXlsxHandler)
        {
            var ex = Record.Exception(() => benchmarkDotnetXlsxHandler.Handle(null,
                                                                              new Summary(string.Empty, new System.Collections.Immutable.ImmutableArray <BenchmarkReport>(),
                                                                                          BenchmarkDotNet.Environments.HostEnvironmentInfo.GetCurrent(),
                                                                                          string.Empty, string.Empty,
                                                                                          TimeSpan.Zero, CultureInfo.CurrentCulture,
                                                                                          new System.Collections.Immutable.ImmutableArray <ValidationError>())));

            Assert.NotNull(ex);
        }