[Tests] Enable implict usings

This commit is contained in:
Jason Nelson 2024-03-15 11:34:24 -07:00 committed by BobLd
parent 4e1c7930b7
commit 1d2777d59a
183 changed files with 27 additions and 495 deletions

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.ContentStream namespace UglyToad.PdfPig.Tests.ContentStream
{ {
using PdfPig.Core; using PdfPig.Core;
using Xunit;
public class IndirectReferenceTests public class IndirectReferenceTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Core namespace UglyToad.PdfPig.Tests.Core
{ {
using System.Collections.Generic;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using Xunit;
public class PdfSubpathTests public class PdfSubpathTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Core namespace UglyToad.PdfPig.Tests.Core
{ {
using System.Collections.Generic;
using PdfPig.Core; using PdfPig.Core;
using Xunit;
public class TransformationMatrixTests public class TransformationMatrixTests
{ {

View File

@ -1,10 +1,6 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System;
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.DocumentLayoutAnalysis; using UglyToad.PdfPig.DocumentLayoutAnalysis;
using Xunit;
public class ArraySegmentExtensionsTests public class ArraySegmentExtensionsTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System.Collections.Generic;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.DocumentLayoutAnalysis; using UglyToad.PdfPig.DocumentLayoutAnalysis;
using Xunit;
public class DistancesTest public class DistancesTest
{ {

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System;
using System.IO;
internal static class DlaHelper internal static class DlaHelper
{ {
public static string GetDocumentPath(string name, bool isPdf = true) public static string GetDocumentPath(string name, bool isPdf = true)

View File

@ -1,11 +1,8 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
using UglyToad.PdfPig.Fonts.SystemFonts; using UglyToad.PdfPig.Fonts.SystemFonts;
using Xunit;
public class DocstrumBoundingBoxesTests public class DocstrumBoundingBoxesTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System.Collections.Generic;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.DocumentLayoutAnalysis; using UglyToad.PdfPig.DocumentLayoutAnalysis;
using Xunit;
public class KdTreeTests public class KdTreeTests
{ {

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.DocumentLayoutAnalysis; using UglyToad.PdfPig.DocumentLayoutAnalysis;
using Xunit;
public class MathExtensionsTests public class MathExtensionsTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System.Linq;
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
using Xunit;
public class NearestNeighbourWordExtractorTests public class NearestNeighbourWordExtractorTests
{ {

View File

@ -1,10 +1,7 @@
namespace UglyToad.PdfPig.Tests.Dla namespace UglyToad.PdfPig.Tests.Dla
{ {
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
using Xunit;
public class RecursiveXYCutTests public class RecursiveXYCutTests
{ {

View File

@ -1,7 +1,4 @@
using System; namespace UglyToad.PdfPig.Tests
using System.Collections.Generic;
namespace UglyToad.PdfPig.Tests
{ {
internal class DoubleComparer : IEqualityComparer<double> internal class DoubleComparer : IEqualityComparer<double>
{ {

View File

@ -1,6 +1,4 @@
using Xunit; namespace UglyToad.PdfPig.Tests.Encryption
namespace UglyToad.PdfPig.Tests.Encryption
{ {
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Encryption; using PdfPig.Encryption;

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Encryption namespace UglyToad.PdfPig.Tests.Encryption
{ {
using System.Linq;
using PdfPig.Encryption; using PdfPig.Encryption;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class RC4Tests public class RC4Tests
{ {

View File

@ -1,11 +1,8 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using System;
using System.Collections.Generic;
using System.Text; using System.Text;
using PdfPig.Filters; using PdfPig.Filters;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class Ascii85FilterTests public class Ascii85FilterTests
{ {

View File

@ -1,11 +1,8 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using System;
using System.Collections.Generic;
using System.Text; using System.Text;
using PdfPig.Filters; using PdfPig.Filters;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class AsciiHexDecodeFilterTests public class AsciiHexDecodeFilterTests
{ {

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using PdfPig.Filters; using PdfPig.Filters;
using Xunit;
public class BitStreamTests public class BitStreamTests
{ {

View File

@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using System.Collections.Generic;
using UglyToad.PdfPig.Filters; using UglyToad.PdfPig.Filters;
using UglyToad.PdfPig.Tests.Images; using UglyToad.PdfPig.Tests.Images;
using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Tokens;
using Xunit;
public class CcittFaxDecodeFilterTests public class CcittFaxDecodeFilterTests
{ {

View File

@ -1,10 +1,7 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using System;
using System.Collections.Generic;
using PdfPig.Tokens; using PdfPig.Tokens;
using PdfPig.Filters; using PdfPig.Filters;
using Xunit;
public class DecodeParameterResolverTests public class DecodeParameterResolverTests
{ {

View File

@ -1,10 +1,7 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using System.Collections.Generic;
using System.IO;
using PdfPig.Filters; using PdfPig.Filters;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class FlateFilterTests public class FlateFilterTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Filters namespace UglyToad.PdfPig.Tests.Filters
{ {
using System.Collections.Generic;
using PdfPig.Filters; using PdfPig.Filters;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class RunLengthFilterTests public class RunLengthFilterTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts namespace UglyToad.PdfPig.Tests.Fonts
{ {
using System.Text;
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Geometry; using System.Text;
using Xunit;
public class CharacterPathTests public class CharacterPathTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.CidFonts namespace UglyToad.PdfPig.Tests.Fonts.CidFonts
{ {
using System.Collections.Generic;
using PdfFonts.CidFonts; using PdfFonts.CidFonts;
using PdfPig.Geometry; using PdfPig.Geometry;
using Xunit;
public class VerticalWritingMetricsTests public class VerticalWritingMetricsTests
{ {

View File

@ -1,9 +1,7 @@
// ReSharper disable ObjectCreationAsStatement // ReSharper disable ObjectCreationAsStatement
namespace UglyToad.PdfPig.Tests.Fonts.Cmap namespace UglyToad.PdfPig.Tests.Fonts.Cmap
{ {
using System;
using PdfFonts.Cmap; using PdfFonts.Cmap;
using Xunit;
public class CidRangeTests public class CidRangeTests
{ {

View File

@ -1,13 +1,10 @@
namespace UglyToad.PdfPig.Tests.Fonts.Cmap namespace UglyToad.PdfPig.Tests.Fonts.Cmap
{ {
using System;
using System.Linq;
using PdfFonts.Cmap; using PdfFonts.Cmap;
using PdfPig.Tokens; using PdfPig.Tokens;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.PdfFonts.Parser.Parts; using UglyToad.PdfPig.PdfFonts.Parser.Parts;
using UglyToad.PdfPig.Tokenization.Scanner; using UglyToad.PdfPig.Tokenization.Scanner;
using Xunit;
public class CodespaceRangeTests public class CodespaceRangeTests
{ {

View File

@ -1,10 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts.CompactFontFormat namespace UglyToad.PdfPig.Tests.Fonts.CompactFontFormat
{ {
using System;
using System.IO;
using System.Linq;
using PdfPig.Fonts.CompactFontFormat; using PdfPig.Fonts.CompactFontFormat;
using Xunit;
public class CompactFontFormatParserTests public class CompactFontFormatParserTests
{ {

View File

@ -3,8 +3,6 @@
using PdfPig.Fonts.CompactFontFormat; using PdfPig.Fonts.CompactFontFormat;
using PdfPig.Fonts.CompactFontFormat.Charsets; using PdfPig.Fonts.CompactFontFormat.Charsets;
using PdfPig.Fonts.CompactFontFormat.CharStrings; using PdfPig.Fonts.CompactFontFormat.CharStrings;
using System;
using Xunit;
public class Type2CharStringParserTests public class Type2CharStringParserTests
{ {

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts.Encodings namespace UglyToad.PdfPig.Tests.Fonts.Encodings
{ {
using System;
using System.IO;
using PdfPig.Fonts; using PdfPig.Fonts;
using Xunit;
public class GlyphListFactoryTests public class GlyphListFactoryTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts.Encodings namespace UglyToad.PdfPig.Tests.Fonts.Encodings
{ {
using System.Collections.Generic;
using PdfPig.Fonts; using PdfPig.Fonts;
using Xunit;
public class GlyphListTests public class GlyphListTests
{ {

View File

@ -1,10 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.Parser namespace UglyToad.PdfPig.Tests.Fonts.Parser
{ {
using System;
using System.IO;
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Fonts.AdobeFontMetrics; using PdfPig.Fonts.AdobeFontMetrics;
using Xunit;
public class AdobeFontMetricsParserTests public class AdobeFontMetricsParserTests
{ {

View File

@ -1,11 +1,8 @@
namespace UglyToad.PdfPig.Tests.Fonts.Parser namespace UglyToad.PdfPig.Tests.Fonts.Parser
{ {
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO;
using PdfFonts.Parser; using PdfFonts.Parser;
using PdfPig.Core; using PdfPig.Core;
using Xunit;
public class CMapParserTests public class CMapParserTests
{ {

View File

@ -3,7 +3,6 @@
using PdfFonts.Cmap; using PdfFonts.Cmap;
using PdfFonts.Parser.Parts; using PdfFonts.Parser.Parts;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class BaseFontRangeParserTests public class BaseFontRangeParserTests
{ {

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts namespace UglyToad.PdfPig.Tests.Fonts
{ {
using UglyToad.PdfPig.Tests.Dla; using UglyToad.PdfPig.Tests.Dla;
using Xunit;
public class PointSizeTests public class PointSizeTests
{ {

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts namespace UglyToad.PdfPig.Tests.Fonts
{ {
using PdfPig.Fonts.Standard14Fonts; using PdfPig.Fonts.Standard14Fonts;
using Xunit;
public class Standard14Tests public class Standard14Tests
{ {

View File

@ -1,7 +1,5 @@
using System.Collections.Generic; using UglyToad.PdfPig.Fonts.SystemFonts;
using UglyToad.PdfPig.Fonts.SystemFonts;
using UglyToad.PdfPig.Tests.Dla; using UglyToad.PdfPig.Tests.Dla;
using Xunit;
namespace UglyToad.PdfPig.Tests.Fonts.SystemFonts namespace UglyToad.PdfPig.Tests.Fonts.SystemFonts
{ {

View File

@ -5,11 +5,9 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType;
using PdfPig.Fonts.TrueType.Parser; using PdfPig.Fonts.TrueType.Parser;
using PdfPig.Fonts.TrueType.Tables; using PdfPig.Fonts.TrueType.Tables;
using System;
using System.Globalization; using System.Globalization;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Xunit;
public class TrueTypeFontParserTests public class TrueTypeFontParserTests
{ {

View File

@ -1,11 +1,8 @@
namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Tables namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Tables
{ {
using System.IO;
using System.Linq;
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType;
using PdfPig.Fonts.TrueType.Parser; using PdfPig.Fonts.TrueType.Parser;
using Xunit;
public class Os2TableTests public class Os2TableTests
{ {

View File

@ -1,12 +1,8 @@
namespace UglyToad.PdfPig.Tests.Fonts.TrueType namespace UglyToad.PdfPig.Tests.Fonts.TrueType
{ {
using System;
using System.IO;
using System.Linq;
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType;
using PdfPig.Fonts.TrueType.Parser; using PdfPig.Fonts.TrueType.Parser;
using Xunit;
public class TrueTypeChecksumCalculatorTests public class TrueTypeChecksumCalculatorTests
{ {

View File

@ -2,7 +2,6 @@
{ {
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType;
using Xunit;
public class TrueTypeDataBytesTests public class TrueTypeDataBytesTests
{ {

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Fonts.TrueType namespace UglyToad.PdfPig.Tests.Fonts.TrueType
{ {
using System;
using System.IO;
internal static class TrueTypeTestHelper internal static class TrueTypeTestHelper
{ {
public static byte[] GetFileBytes(string name) public static byte[] GetFileBytes(string name)

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts.Type1 namespace UglyToad.PdfPig.Tests.Fonts.Type1
{ {
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using Xunit;
using Integration; using Integration;
public class Type1CharStringParserTests public class Type1CharStringParserTests

View File

@ -1,13 +1,8 @@
namespace UglyToad.PdfPig.Tests.Fonts.Type1 namespace UglyToad.PdfPig.Tests.Fonts.Type1
{ {
using System;
using System.IO;
using System.Linq;
using System.Text; using System.Text;
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Fonts.Type1.Parser; using PdfPig.Fonts.Type1.Parser;
using PdfPig.Geometry;
using Xunit;
public class Type1FontParserTests public class Type1FontParserTests
{ {

View File

@ -1,13 +1,9 @@
namespace UglyToad.PdfPig.Tests.Functions namespace UglyToad.PdfPig.Tests.Functions
{ {
using System;
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.Functions; using UglyToad.PdfPig.Functions;
using UglyToad.PdfPig.Tests.Tokens; using UglyToad.PdfPig.Tests.Tokens;
using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Tokens;
using UglyToad.PdfPig.Util; using UglyToad.PdfPig.Util;
using Xunit;
public class PdfFunctionType0Tests public class PdfFunctionType0Tests
{ {

View File

@ -1,12 +1,9 @@
namespace UglyToad.PdfPig.Tests.Functions namespace UglyToad.PdfPig.Tests.Functions
{ {
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.Functions; using UglyToad.PdfPig.Functions;
using UglyToad.PdfPig.Tests.Tokens; using UglyToad.PdfPig.Tests.Tokens;
using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Tokens;
using UglyToad.PdfPig.Util; using UglyToad.PdfPig.Util;
using Xunit;
public class PdfFunctionType2Tests public class PdfFunctionType2Tests
{ {

View File

@ -1,9 +1,5 @@
namespace UglyToad.PdfPig.Tests.Functions namespace UglyToad.PdfPig.Tests.Functions
{ {
using System;
using System.Collections.Generic;
using System.Text;
public class PdfFunctionType3Tests public class PdfFunctionType3Tests
{ {
// TODO // TODO

View File

@ -1,13 +1,10 @@
namespace UglyToad.PdfPig.Tests.Functions namespace UglyToad.PdfPig.Tests.Functions
{ {
using System.Collections.Generic;
using System.Linq;
using System.Text; using System.Text;
using UglyToad.PdfPig.Functions; using UglyToad.PdfPig.Functions;
using UglyToad.PdfPig.Tests.Tokens; using UglyToad.PdfPig.Tests.Tokens;
using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Tokens;
using UglyToad.PdfPig.Util; using UglyToad.PdfPig.Util;
using Xunit;
public class PdfFunctionType4Tests public class PdfFunctionType4Tests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Functions.Type4 namespace UglyToad.PdfPig.Tests.Functions.Type4
{ {
using System;
using UglyToad.PdfPig.Functions.Type4; using UglyToad.PdfPig.Functions.Type4;
using Xunit;
public class OperatorsTests public class OperatorsTests
{ {

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tests.Functions.Type4 namespace UglyToad.PdfPig.Tests.Functions.Type4
{ {
using Xunit;
public class ParserTests public class ParserTests
{ {
/// <summary> /// <summary>

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Functions.Type4 namespace UglyToad.PdfPig.Tests.Functions.Type4
{ {
using System;
using System.Globalization; using System.Globalization;
using UglyToad.PdfPig.Functions.Type4; using UglyToad.PdfPig.Functions.Type4;
using Xunit;
/// <summary> /// <summary>
/// Testing helper class for testing type 4 functions from the PDF specification. /// Testing helper class for testing type 4 functions from the PDF specification.

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Geometry namespace UglyToad.PdfPig.Tests.Geometry
{ {
using System.Collections.Generic;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Geometry; using UglyToad.PdfPig.Geometry;
using Xunit;
using static UglyToad.PdfPig.Core.PdfSubpath; using static UglyToad.PdfPig.Core.PdfSubpath;
public class BezierCurveTests public class BezierCurveTests

View File

@ -1,5 +1,4 @@
using UglyToad.PdfPig.Tests.Integration; using UglyToad.PdfPig.Tests.Integration;
using Xunit;
namespace UglyToad.PdfPig.Tests.Geometry namespace UglyToad.PdfPig.Tests.Geometry
{ {

View File

@ -2,8 +2,6 @@
{ {
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Geometry; using PdfPig.Geometry;
using System.Collections.Generic;
using Xunit;
public class PdfLineTests public class PdfLineTests
{ {

View File

@ -1,10 +1,8 @@
namespace UglyToad.PdfPig.Tests.Geometry namespace UglyToad.PdfPig.Tests.Geometry
{ {
using System.Linq;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Geometry; using UglyToad.PdfPig.Geometry;
using UglyToad.PdfPig.Tests.Integration; using UglyToad.PdfPig.Tests.Integration;
using Xunit;
public class PdfPathExtensionsTests public class PdfPathExtensionsTests
{ {

View File

@ -1,10 +1,7 @@
namespace UglyToad.PdfPig.Tests.Geometry namespace UglyToad.PdfPig.Tests.Geometry
{ {
using PdfPig.Core; using PdfPig.Core;
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.Geometry; using UglyToad.PdfPig.Geometry;
using Xunit;
public class PdfPointTests public class PdfPointTests
{ {

View File

@ -3,8 +3,6 @@
using Content; using Content;
using PdfPig.Geometry; using PdfPig.Geometry;
using PdfPig.Core; using PdfPig.Core;
using Xunit;
using System.Collections.Generic;
using System.Drawing; using System.Drawing;
public class PdfRectangleTests public class PdfRectangleTests

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Geometry namespace UglyToad.PdfPig.Tests.Geometry
{ {
using System.Collections.Generic;
using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Core;
using UglyToad.PdfPig.Geometry; using UglyToad.PdfPig.Geometry;
using Xunit;
using static UglyToad.PdfPig.Core.PdfSubpath; using static UglyToad.PdfPig.Core.PdfSubpath;
public class PdfSubpathLineTests public class PdfSubpathLineTests

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Geometry namespace UglyToad.PdfPig.Tests.Geometry
{ {
using PdfPig.Geometry; using PdfPig.Geometry;
using Xunit;
public class PdfVectorTests public class PdfVectorTests
{ {

View File

@ -4,7 +4,6 @@
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Geometry; using PdfPig.Geometry;
using PdfPig.Graphics; using PdfPig.Graphics;
using Xunit;
public class ContentStreamProcessorTests public class ContentStreamProcessorTests
{ {

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Graphics.Operations.General namespace UglyToad.PdfPig.Tests.Graphics.Operations.General
{ {
using PdfPig.Graphics.Operations.General; using PdfPig.Graphics.Operations.General;
using Xunit;
public class SetMiterLimitTests public class SetMiterLimitTests
{ {

View File

@ -1,14 +1,9 @@
namespace UglyToad.PdfPig.Tests.Graphics.Operations namespace UglyToad.PdfPig.Tests.Graphics.Operations
{ {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection; using System.Reflection;
using PdfPig.Graphics.Operations; using PdfPig.Graphics.Operations;
using PdfPig.Graphics.Operations.InlineImages; using PdfPig.Graphics.Operations.InlineImages;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class GraphicsStateOperationTests public class GraphicsStateOperationTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
{ {
using System;
using PdfPig.Graphics; using PdfPig.Graphics;
using PdfPig.Graphics.Operations.SpecialGraphicsState; using PdfPig.Graphics.Operations.SpecialGraphicsState;
using Xunit;
public class PopTests public class PopTests
{ {

View File

@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
{ {
using PdfPig.Graphics.Operations.SpecialGraphicsState; using PdfPig.Graphics.Operations.SpecialGraphicsState;
using Xunit;
public class PushTests public class PushTests
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Graphics.Operations.TextState namespace UglyToad.PdfPig.Tests.Graphics.Operations.TextState
{ {
using System;
using PdfPig.Graphics.Operations.TextState; using PdfPig.Graphics.Operations.TextState;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class SetFontAndSizeTests public class SetFontAndSizeTests
{ {

View File

@ -1,13 +1,11 @@
namespace UglyToad.PdfPig.Tests.Graphics namespace UglyToad.PdfPig.Tests.Graphics
{ {
using System.Collections.Generic;
using Content; using Content;
using Logging; using Logging;
using PdfFonts; using PdfFonts;
using PdfPig.Graphics; using PdfPig.Graphics;
using PdfPig.Tokens; using PdfPig.Tokens;
using PdfPig.Core; using PdfPig.Core;
using System;
using Tokens; using Tokens;
using UglyToad.PdfPig.Graphics.Core; using UglyToad.PdfPig.Graphics.Core;
using UglyToad.PdfPig.Graphics.Operations.TextPositioning; using UglyToad.PdfPig.Graphics.Operations.TextPositioning;

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.IO namespace UglyToad.PdfPig.Tests.IO
{ {
using System.IO;
using System.Linq;
using PdfPig.Core; using PdfPig.Core;
using Xunit;
public class InputBytesTests public class InputBytesTests
{ {

View File

@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Tests.Images namespace UglyToad.PdfPig.Tests.Images
{ {
using System;
using System.IO; using System.IO;
using System.IO.Compression; using System.IO.Compression;
using UglyToad.PdfPig.Images.Png; using UglyToad.PdfPig.Images.Png;

View File

@ -1,18 +1,12 @@
namespace UglyToad.PdfPig.Tests.Images namespace UglyToad.PdfPig.Tests.Images
{ {
using System;
using System.IO;
using Xunit;
using JpegHandler = UglyToad.PdfPig.Images.JpegHandler; using JpegHandler = UglyToad.PdfPig.Images.JpegHandler;
public class JpegHandlerTests public class JpegHandlerTests
{ {
[Fact] [Fact]
public void CanGetJpegInformation() public void CanGetJpegInformation()
{ {
var dataJpg = LoadJpg("218995467-ccb746b0-dc28-4616-bcb1-4ad685f81876.jpg"); var dataJpg = LoadJpg("218995467-ccb746b0-dc28-4616-bcb1-4ad685f81876.jpg");
using (var ms = new MemoryStream(dataJpg)) using (var ms = new MemoryStream(dataJpg))
@ -25,8 +19,6 @@
} }
} }
private static byte[] LoadJpg(string name) private static byte[] LoadJpg(string name)
{ {
var baseFolder = Path.GetFullPath(AppDomain.CurrentDomain.BaseDirectory); var baseFolder = Path.GetFullPath(AppDomain.CurrentDomain.BaseDirectory);

View File

@ -1,10 +1,7 @@
namespace UglyToad.PdfPig.Tests.Images namespace UglyToad.PdfPig.Tests.Images
{ {
using System.Collections.Generic;
using System.Linq;
using UglyToad.PdfPig.Graphics.Colors; using UglyToad.PdfPig.Graphics.Colors;
using UglyToad.PdfPig.Images.Png; using UglyToad.PdfPig.Images.Png;
using Xunit;
public class PngFromPdfImageFactoryTests public class PngFromPdfImageFactoryTests
{ {

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration; namespace UglyToad.PdfPig.Tests.Integration;
using System.Linq;
using Xunit;
public class AccentedCharactersInBookmarksTests public class AccentedCharactersInBookmarksTests
{ {
[Fact] [Fact]

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Linq;
using AcroForms.Fields; using AcroForms.Fields;
using Xunit;
public class AcroFormsBasicFieldsTests public class AcroFormsBasicFieldsTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using PdfPig.Tokens; using PdfPig.Tokens;
using System.Collections.Generic;
using Xunit;
public class AdvancedPdfDocumentAccessTests public class AdvancedPdfDocumentAccessTests
{ {

View File

@ -1,14 +1,10 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
using System.Linq;
using System.Text; using System.Text;
using System.Xml; using System.Xml;
using UglyToad.PdfPig.DocumentLayoutAnalysis.Export; using UglyToad.PdfPig.DocumentLayoutAnalysis.Export;
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
using UglyToad.PdfPig.Util; using UglyToad.PdfPig.Util;
using Xunit;
public class AltoXmlTextExporterTests public class AltoXmlTextExporterTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration; namespace UglyToad.PdfPig.Tests.Integration;
using Annotations; using Annotations;
using System.Linq;
using Xunit;
public class AnnotationReplyToTests public class AnnotationReplyToTests
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using Actions; using Actions;
using System.Linq;
using Xunit;
public class AnnotationsTest public class AnnotationsTest
{ {

View File

@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Globalization; using System.Globalization;
using Content; using Content;
using Xunit;
public class AssertablePositionData public class AssertablePositionData
{ {

View File

@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System.Linq;
using Annotations; using Annotations;
using Xunit;
public class CatGeneticsTests public class CatGeneticsTests
{ {

View File

@ -1,12 +1,8 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Content;
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
using UglyToad.PdfPig.Graphics.Colors; using UglyToad.PdfPig.Graphics.Colors;
using Xunit;
public class ColorSpaceTests public class ColorSpaceTests
{ {

View File

@ -2,7 +2,6 @@
{ {
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Tokens; using PdfPig.Tokens;
using Xunit;
public class DocumentInformationTests public class DocumentInformationTests
{ {

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using Xunit;
public class EmbeddedFileAttachmentTests public class EmbeddedFileAttachmentTests
{ {
[Fact] [Fact]

View File

@ -2,8 +2,6 @@
{ {
using PdfPig.Core; using PdfPig.Core;
using PdfPig.Geometry; using PdfPig.Geometry;
using System.Linq;
using Xunit;
public class EncodingsTests public class EncodingsTests
{ {

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Collections.Generic;
using Exceptions; using Exceptions;
using Xunit;
public class EncryptedDocumentTests public class EncryptedDocumentTests
{ {

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System.Linq;
using Xunit;
public class FarmerMacTests public class FarmerMacTests
{ {
private static string GetFilename() private static string GetFilename()

View File

@ -1,12 +1,7 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text; using System.Text;
using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Content;
using Xunit;
public class FontDescriptorTests public class FontDescriptorTests
{ {

View File

@ -1,10 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
using System.Linq;
using Content; using Content;
using Xunit;
public class FontSizeTestFromGoogleChromeTests public class FontSizeTestFromGoogleChromeTests
{ {

View File

@ -1,10 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
using System.Linq;
using Content; using Content;
using Xunit;
public class FontSizeTestFromLibreOfficeTests public class FontSizeTestFromLibreOfficeTests
{ {

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using Xunit;
public class GamebookTests public class GamebookTests
{ {
[Fact] [Fact]

View File

@ -1,13 +1,10 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
using System.Text; using System.Text;
using System.Xml; using System.Xml;
using UglyToad.PdfPig.DocumentLayoutAnalysis.Export; using UglyToad.PdfPig.DocumentLayoutAnalysis.Export;
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
using UglyToad.PdfPig.Util; using UglyToad.PdfPig.Util;
using Xunit;
public class HOcrTextExporterTests public class HOcrTextExporterTests
{ {

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration; namespace UglyToad.PdfPig.Tests.Integration;
using System.Linq;
using Xunit;
public class IndexedPageSummaryFileTests public class IndexedPageSummaryFileTests
{ {
private static string GetFilename() private static string GetFilename()

View File

@ -1,11 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Xunit;
public class IntegrationDocumentTests public class IntegrationDocumentTests
{ {
private static readonly Lazy<string> DocumentFolder = new Lazy<string>(() => Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Integration", "Documents"))); private static readonly Lazy<string> DocumentFolder = new Lazy<string>(() => Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Integration", "Documents")));

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
internal static class IntegrationHelpers internal static class IntegrationHelpers
{ {
public static string GetDocumentPath(string name, bool isPdf = true) public static string GetDocumentPath(string name, bool isPdf = true)

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using Xunit;
public class InvalidObjectLoopTests public class InvalidObjectLoopTests
{ {
[Fact] [Fact]

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using Xunit;
public class InvalidOperatorTests public class InvalidOperatorTests
{ {
[Fact] [Fact]

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System.IO;
using System.Linq;
using Content; using Content;
using Xunit;
public class JudgementDocumentTests public class JudgementDocumentTests
{ {

View File

@ -2,13 +2,8 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using PdfPig.Core; using PdfPig.Core;
using DocumentLayoutAnalysis.Export; using DocumentLayoutAnalysis.Export;
using Xunit;
public class LaTexTests public class LaTexTests
{ {

View File

@ -1,8 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration; namespace UglyToad.PdfPig.Tests.Integration;
using System.Linq;
using Xunit;
public class LittlePigInArmenianTests public class LittlePigInArmenianTests
{ {
[Fact] [Fact]

View File

@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
//using System;
//using System.Diagnostics; //using System.Diagnostics;
//using System.IO;
//using Xunit;
/// <summary> /// <summary>
/// A class for testing files which are not checked in to source control. /// A class for testing files which are not checked in to source control.

View File

@ -1,5 +1,4 @@
using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Content;
using Xunit;
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {

View File

@ -1,7 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration; namespace UglyToad.PdfPig.Tests.Integration;
using Xunit;
public class Math119FakingDataTests public class Math119FakingDataTests
{ {
[Fact] [Fact]
@ -13,6 +11,5 @@ public class Math119FakingDataTests
var words = lastPage.GetWords(); var words = lastPage.GetWords();
} }
} }

View File

@ -1,11 +1,6 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Content; using Content;
using Xunit;
public class MultiplePageMortalityStatisticsTests public class MultiplePageMortalityStatisticsTests
{ {

View File

@ -1,13 +1,9 @@
namespace UglyToad.PdfPig.Tests.Integration namespace UglyToad.PdfPig.Tests.Integration
{ {
using System;
using System.IO;
using System.Linq;
using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Content;
using UglyToad.PdfPig.Outline; using UglyToad.PdfPig.Outline;
using UglyToad.PdfPig.Outline.Destinations; using UglyToad.PdfPig.Outline.Destinations;
using UglyToad.PdfPig.Writer; using UglyToad.PdfPig.Writer;
using Xunit;
public class NonAsciiCharactersBookmarksTests public class NonAsciiCharactersBookmarksTests
{ {

Some files were not shown because too many files have changed in this diff Show More