Browse Source

Rework some UnitTest's

reports
Peter Forstmeier 13 years ago
parent
commit
496aa81a85
  1. 1
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs
  2. 3
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/ReportModel.cs
  3. 3
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/ReportingFactory.cs
  4. 7
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/PageBuilder/ContainerConverterFixture.cs

1
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Collections.cs

@ -13,7 +13,6 @@ using System.Globalization; @@ -13,7 +13,6 @@ using System.Globalization;
using System.Linq;
using ICSharpCode.Reporting.BaseClasses;
using ICSharpCode.Reporting.Items;
namespace ICSharpCode.Reporting
{

3
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/ReportModel.cs

@ -7,11 +7,8 @@ @@ -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

3
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/ReportingFactory.cs

@ -23,9 +23,6 @@ namespace ICSharpCode.Reporting @@ -23,9 +23,6 @@ namespace ICSharpCode.Reporting
/// </summary>
public class ReportingFactory
{
public ReportingFactory()
{
}
public IReportCreator ReportCreator (Stream stream,Type listType,IEnumerable list)

7
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/PageBuilder/ContainerConverterFixture.cs

@ -22,6 +22,13 @@ namespace ICSharpCode.Reporting.Test.PageBuilder @@ -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));

Loading…
Cancel
Save