From 496aa81a85d8c9fa44864ad03e9736afedf44264 Mon Sep 17 00:00:00 2001 From: Peter Forstmeier Date: Thu, 5 Sep 2013 20:45:09 +0200 Subject: [PATCH] Rework some UnitTest's --- .../Reporting/ICSharpCode.Reporting/Src/Collections.cs | 1 - .../ICSharpCode.Reporting/Src/Items/ReportModel.cs | 3 --- .../ICSharpCode.Reporting/Src/ReportingFactory.cs | 3 --- .../src/PageBuilder/ContainerConverterFixture.cs | 7 +++++++ 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs index 30d802b636..6d3de51096 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs @@ -13,7 +13,6 @@ using System.Globalization; using System.Linq; using ICSharpCode.Reporting.BaseClasses; -using ICSharpCode.Reporting.Items; namespace ICSharpCode.Reporting { diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/ReportModel.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/ReportModel.cs index 8394ee97ec..00c920b7c8 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/ReportModel.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/ReportModel.cs @@ -7,11 +7,8 @@ * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using ICSharpCode.Reporting.Factories; -using ICSharpCode.Reporting.Globals; using ICSharpCode.Reporting.Interfaces; namespace ICSharpCode.Reporting.Items diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/ReportingFactory.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/ReportingFactory.cs index 102393ee24..3082f850e0 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/ReportingFactory.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/ReportingFactory.cs @@ -23,9 +23,6 @@ namespace ICSharpCode.Reporting /// public class ReportingFactory { - public ReportingFactory() - { - } public IReportCreator ReportCreator (Stream stream,Type listType,IEnumerable list) diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/PageBuilder/ContainerConverterFixture.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/PageBuilder/ContainerConverterFixture.cs index 5ba2cde5ce..1135bdc8ec 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/PageBuilder/ContainerConverterFixture.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/PageBuilder/ContainerConverterFixture.cs @@ -22,6 +22,13 @@ namespace ICSharpCode.Reporting.Test.PageBuilder private IReportContainer container; private Graphics graphics; + + [Test] + [ExpectedException(typeof(ArgumentNullException))] + public void ConverterThrowIfGraphicsEqualNull() { + var converter = new ContainerConverter(null,new Point(30,30)); + } + [Test] public void ConverterReturnExportContainer() { var converter = new ContainerConverter(graphics,new Point(30,30));