From 1d2777d59ac61373678cedc3fb124b4509d877b5 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 15 Mar 2024 11:34:24 -0700 Subject: [PATCH] [Tests] Enable implict usings --- .../ContentStream/IndirectReferenceTests.cs | 1 - src/UglyToad.PdfPig.Tests/Core/PdfSubpathTests.cs | 2 -- .../Core/TransformationMatrixTests.cs | 2 -- .../Dla/ArraySegmentExtensionsTests.cs | 4 ---- src/UglyToad.PdfPig.Tests/Dla/DistancesTest.cs | 2 -- src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs | 3 --- .../Dla/DocstrumBoundingBoxesTests.cs | 3 --- src/UglyToad.PdfPig.Tests/Dla/KdTreeTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Dla/MathExtensionsTests.cs | 5 +---- .../Dla/NearestNeighbourWordExtractorTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Dla/RecursiveXYCutTests.cs | 5 +---- src/UglyToad.PdfPig.Tests/DoubleComparer.cs | 5 +---- .../Encryption/AesEncryptionHelperTests.cs | 4 +--- src/UglyToad.PdfPig.Tests/Encryption/RC4Tests.cs | 2 -- .../Filters/Ascii85FilterTests.cs | 3 --- .../Filters/AsciiHexDecodeFilterTests.cs | 5 +---- src/UglyToad.PdfPig.Tests/Filters/BitStreamTests.cs | 1 - .../Filters/CcittFaxDecodeFilterTests.cs | 2 -- .../Filters/DecodeParameterResolverTests.cs | 3 --- .../Filters/FlateFilterTests.cs | 3 --- .../Filters/RunLengthFilterTests.cs | 2 -- .../Fonts/CharacterPathTests.cs | 4 +--- .../Fonts/CidFonts/VerticalWritingMetricsTests.cs | 2 -- .../Fonts/Cmap/CidRangeTests.cs | 2 -- .../Fonts/Cmap/CodespaceRangeTests.cs | 3 --- .../CompactFontFormatParserTests.cs | 4 ---- .../CompactFontFormat/Type2CharStringParserTests.cs | 2 -- .../Fonts/Encodings/GlyphListFactoryTests.cs | 3 --- .../Fonts/Encodings/GlyphListTests.cs | 2 -- .../Fonts/Parser/AdobeFontMetricsParserTests.cs | 3 --- .../Fonts/Parser/CMapParserTests.cs | 3 --- .../Fonts/Parser/Parts/BaseFontRangeParserTests.cs | 1 - src/UglyToad.PdfPig.Tests/Fonts/PointSizeTests.cs | 1 - src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs | 1 - src/UglyToad.PdfPig.Tests/Fonts/SystemFonts/Linux.cs | 4 +--- .../Fonts/TrueType/Parser/TrueTypeFontParserTests.cs | 2 -- .../Fonts/TrueType/Tables/Os2TableTests.cs | 3 --- .../TrueType/TrueTypeChecksumCalculatorTests.cs | 4 ---- .../Fonts/TrueType/TrueTypeDataBytesTests.cs | 1 - .../Fonts/TrueType/TrueTypeTestHelper.cs | 3 --- .../Fonts/Type1/Type1CharStringParserTests.cs | 1 - .../Fonts/Type1/Type1FontParserTests.cs | 5 ----- .../Functions/PdfFunctionType0Tests.cs | 4 ---- .../Functions/PdfFunctionType2Tests.cs | 5 +---- .../Functions/PdfFunctionType3Tests.cs | 4 ---- .../Functions/PdfFunctionType4Tests.cs | 5 +---- .../Functions/Type4/OperatorsTests.cs | 2 -- .../Functions/Type4/ParserTests.cs | 2 -- .../Functions/Type4/Type4Tester.cs | 2 -- .../Geometry/BezierCurveTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Geometry/ClippingTests.cs | 1 - src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs | 2 -- .../Geometry/PdfPathExtensionsTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs | 3 --- .../Geometry/PdfRectangleTests.cs | 2 -- .../Geometry/PdfSubpathLineTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Geometry/PdfVectorTests.cs | 1 - .../Graphics/ContentStreamProcessorTests.cs | 1 - .../Operations/General/SetMiterLimitTests.cs | 1 - .../Operations/GraphicsStateOperationTests.cs | 5 ----- .../Operations/SpecialGraphicsState/PopTests.cs | 2 -- .../Operations/SpecialGraphicsState/PushTests.cs | 1 - .../Operations/TextState/SetFontAndSizeTests.cs | 2 -- .../Graphics/TestOperationContext.cs | 2 -- src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs | 5 +---- src/UglyToad.PdfPig.Tests/Images/ImageHelpers.cs | 1 - src/UglyToad.PdfPig.Tests/Images/JpegHandlerTests.cs | 12 ++---------- .../Images/PngFromPdfImageFactoryTests.cs | 3 --- .../AccentedCharactersInBookmarksTests.cs | 3 --- .../Integration/AcroFormsBasicFieldsTests.cs | 3 --- .../Integration/AdvancedPdfDocumentAccessTests.cs | 2 -- .../Integration/AltoXmlTextExporterTests.cs | 4 ---- .../Integration/AnnotationReplyToTests.cs | 2 -- .../Integration/AnnotationsTest.cs | 2 -- .../Integration/AssertablePositionData.cs | 2 -- .../Integration/CatGeneticsTests.cs | 2 -- .../Integration/ColorSpaceTests.cs | 4 ---- .../Integration/DocumentInformationTests.cs | 1 - .../Integration/EmbeddedFileAttachmentTests.cs | 2 -- .../Integration/EncodingsTests.cs | 2 -- .../Integration/EncryptedDocumentTests.cs | 3 --- .../Integration/FarmerMacTests.cs | 3 --- .../Integration/FontDescriptorTests.cs | 5 ----- .../Integration/FontSizeTestFromGoogleChromeTests.cs | 4 ---- .../Integration/FontSizeTestFromLibreOfficeTests.cs | 4 ---- .../Integration/GamebookTests.cs | 2 -- .../Integration/HOcrTextExporterTests.cs | 3 --- .../Integration/IndexedPageSummaryFileTests.cs | 3 --- .../Integration/IntegrationDocumentTests.cs | 6 ------ .../Integration/IntegrationHelpers.cs | 3 --- .../Integration/InvalidObjectLoopTests.cs | 2 -- .../Integration/InvalidOperator.cs | 3 --- .../Integration/JudgementDocumentTests.cs | 3 --- src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs | 5 ----- .../Integration/LittlePigInArmenianTests.cs | 3 --- src/UglyToad.PdfPig.Tests/Integration/LocalTests.cs | 3 --- .../Integration/MarkedContentExtractionTests.cs | 1 - .../Integration/Math119FakingDataTests.cs | 3 --- .../MultiplePageMortalityStatisticsTests.cs | 5 ----- .../Integration/NonAsciiCharactersBookmarksTests.cs | 4 ---- .../Integration/OldGutnishTests.cs | 3 --- .../Integration/OpenTypeFontTests.cs | 4 +--- .../Integration/OptionalContentTests.cs | 6 +----- .../Integration/PageContentTests.cs | 1 - .../Integration/PageFactoryTests.cs | 3 --- .../Integration/PageXmlTextExporterTests.cs | 4 ---- .../Integration/PatternColorTests.cs | 2 -- .../Integration/PdfParserTests.cs | 5 ----- .../Integration/PigProductionHandbookTests.cs | 6 ------ .../Integration/PigReproductionPowerpointTests.cs | 3 --- .../Integration/PlosOneTests.cs | 2 -- .../Integration/PopBugzilla37292Tests.cs | 2 -- .../Integration/RotationAndCroppingTests.cs | 3 --- .../Integration/ShadingTests.cs | 2 -- .../Integration/ShowTextEscapeText.cs | 2 -- .../Integration/SinglePageFormContentIText1Tests.cs | 3 --- .../Integration/SinglePageHyperlinksOpenOffice.cs | 2 -- .../Integration/SinglePageInkscapeTests.cs | 5 ----- .../Integration/SinglePageLibreOfficeImages.cs | 3 --- .../SinglePageNonLatinAcrobatDistillerTests.cs | 5 ----- .../Integration/SinglePageSimpleGoogleChromeTests.cs | 5 ----- .../Integration/SinglePageSimpleOpenOfficeTests.cs | 3 --- .../Integration/SinglePageType1FontTests.cs | 1 - .../Integration/StreamProcessorTests.cs | 3 --- .../Integration/SvgTextExporterTests.cs | 3 --- .../SwedishTouringCarChampionshipTests.cs | 1 - .../Integration/TwoPageTextOnlyLibreOfficeTests.cs | 2 -- .../Integration/Type0FontTests.cs | 3 --- .../Integration/Type0_CJK_FontTests.cs | 8 +------- .../Integration/Type3FontTests.cs | 2 -- .../GenerateLetterBoundingBoxImages.cs | 3 --- .../VisualVerification/GenerateLetterGlyphImages.cs | 3 --- .../VisualVerification/SkiaHelpers/SkiaExtensions.cs | 2 -- .../SkiaHelpers/SkiaGlyphPageFactory.cs | 1 - .../SkiaHelpers/SkiaGlyphStreamProcessor.cs | 1 - .../Integration/XObjectFormTests.cs | 1 - .../Parser/PageContentParserTests.cs | 3 --- .../Parser/Parts/BruteForceSearcherTests.cs | 3 --- .../CrossReference/TableSubsectionDefinitionTests.cs | 2 -- .../Parser/Parts/DirectObjectFinderTests.cs | 2 -- .../Parser/Parts/FileHeaderParserTests.cs | 3 --- .../FileStructure/CrossReferenceTableParserTests.cs | 3 --- .../Parser/Parts/FileTrailerParserTests.cs | 2 -- .../Parser/Parts/ReadHelperTests.cs | 1 - src/UglyToad.PdfPig.Tests/PointComparer.cs | 2 -- src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs | 4 ---- src/UglyToad.PdfPig.Tests/TestEnvironment.cs | 5 +---- src/UglyToad.PdfPig.Tests/TestFilterProvider.cs | 1 - .../TestObjectLocationProvider.cs | 1 - src/UglyToad.PdfPig.Tests/TestPdfImage.cs | 1 - src/UglyToad.PdfPig.Tests/TestingLog.cs | 1 - .../Tokenization/ArrayTokenizerTests.cs | 2 -- .../Tokenization/CommentTokenizerTests.cs | 1 - .../Tokenization/DictionaryTokenizerTests.cs | 3 --- .../Tokenization/EndOfLineTokenizerTests.cs | 1 - .../Tokenization/HexTokenizerTests.cs | 1 - .../Tokenization/NameTokenizerTests.cs | 1 - .../Tokenization/NumericTokenizerTests.cs | 2 -- .../Tokenization/PlainTokenizerTests.cs | 1 - .../Tokenization/Scanner/CoreTokenScannerTests.cs | 3 --- .../Tokenization/Scanner/PdfTokenScannerTests.cs | 4 ---- .../Tokenization/StringTokenizerTests.cs | 1 - src/UglyToad.PdfPig.Tests/Tokens/ArrayTokenTests.cs | 2 -- .../Tokens/BooleanTokenTests.cs | 1 - .../Tokens/DictionaryTokenTests.cs | 5 +---- src/UglyToad.PdfPig.Tests/Tokens/HexTokenTests.cs | 1 - .../Tokens/TestPdfTokenScanner.cs | 2 -- .../UglyToad.PdfPig.Tests.csproj | 4 ++++ .../Util/DateFormatHelperTests.cs | 11 ++++------- .../Util/DefaultWordExtractorTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Util/HexTests.cs | 2 -- .../Util/InternalStringExtensionsTests.cs | 2 -- src/UglyToad.PdfPig.Tests/Util/Matrix3x3Tests.cs | 1 - src/UglyToad.PdfPig.Tests/Util/OctalHelpersTests.cs | 1 - .../Util/OtherEncodingsTests.cs | 1 - .../Writer/Fonts/Standard14WritingFontTests.cs | 7 ------- .../Writer/Fonts/ToUnicodeCMapBuilderTests.cs | 2 -- .../Writer/PdfDocumentBuilderTests.cs | 5 ----- src/UglyToad.PdfPig.Tests/Writer/PdfMergerTests.cs | 5 ----- .../Writer/PdfPageBuilderTests.cs | 10 +--------- .../Writer/PdfTextRemoverTests.cs | 4 +--- src/UglyToad.PdfPig.Tests/Writer/TokenWriterTests.cs | 4 ---- src/UglyToad.PdfPig.Tests/Writer/XmpTests.cs | 2 -- 183 files changed, 27 insertions(+), 495 deletions(-) diff --git a/src/UglyToad.PdfPig.Tests/ContentStream/IndirectReferenceTests.cs b/src/UglyToad.PdfPig.Tests/ContentStream/IndirectReferenceTests.cs index c87195838..74d49840a 100644 --- a/src/UglyToad.PdfPig.Tests/ContentStream/IndirectReferenceTests.cs +++ b/src/UglyToad.PdfPig.Tests/ContentStream/IndirectReferenceTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.ContentStream { using PdfPig.Core; - using Xunit; public class IndirectReferenceTests { diff --git a/src/UglyToad.PdfPig.Tests/Core/PdfSubpathTests.cs b/src/UglyToad.PdfPig.Tests/Core/PdfSubpathTests.cs index cf717e651..3d380e088 100644 --- a/src/UglyToad.PdfPig.Tests/Core/PdfSubpathTests.cs +++ b/src/UglyToad.PdfPig.Tests/Core/PdfSubpathTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Core { - using System.Collections.Generic; using UglyToad.PdfPig.Core; - using Xunit; public class PdfSubpathTests { diff --git a/src/UglyToad.PdfPig.Tests/Core/TransformationMatrixTests.cs b/src/UglyToad.PdfPig.Tests/Core/TransformationMatrixTests.cs index 19a9ab63a..857bc08fd 100644 --- a/src/UglyToad.PdfPig.Tests/Core/TransformationMatrixTests.cs +++ b/src/UglyToad.PdfPig.Tests/Core/TransformationMatrixTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Core { - using System.Collections.Generic; using PdfPig.Core; - using Xunit; public class TransformationMatrixTests { diff --git a/src/UglyToad.PdfPig.Tests/Dla/ArraySegmentExtensionsTests.cs b/src/UglyToad.PdfPig.Tests/Dla/ArraySegmentExtensionsTests.cs index 32b3d0424..e54b829ed 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/ArraySegmentExtensionsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/ArraySegmentExtensionsTests.cs @@ -1,10 +1,6 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System; - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.DocumentLayoutAnalysis; - using Xunit; public class ArraySegmentExtensionsTests { diff --git a/src/UglyToad.PdfPig.Tests/Dla/DistancesTest.cs b/src/UglyToad.PdfPig.Tests/Dla/DistancesTest.cs index af862236b..282c8ac46 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/DistancesTest.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/DistancesTest.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System.Collections.Generic; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.DocumentLayoutAnalysis; - using Xunit; public class DistancesTest { diff --git a/src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs b/src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs index eaae48990..ea1bf803d 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System; - using System.IO; - internal static class DlaHelper { public static string GetDocumentPath(string name, bool isPdf = true) diff --git a/src/UglyToad.PdfPig.Tests/Dla/DocstrumBoundingBoxesTests.cs b/src/UglyToad.PdfPig.Tests/Dla/DocstrumBoundingBoxesTests.cs index fb01007a2..f10c5f32a 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/DocstrumBoundingBoxesTests.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/DocstrumBoundingBoxesTests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; using UglyToad.PdfPig.Fonts.SystemFonts; - using Xunit; public class DocstrumBoundingBoxesTests { diff --git a/src/UglyToad.PdfPig.Tests/Dla/KdTreeTests.cs b/src/UglyToad.PdfPig.Tests/Dla/KdTreeTests.cs index bb963a488..eaa72d8cd 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/KdTreeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/KdTreeTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System.Collections.Generic; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.DocumentLayoutAnalysis; - using Xunit; public class KdTreeTests { diff --git a/src/UglyToad.PdfPig.Tests/Dla/MathExtensionsTests.cs b/src/UglyToad.PdfPig.Tests/Dla/MathExtensionsTests.cs index 57c737578..6c9468f6e 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/MathExtensionsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/MathExtensionsTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.DocumentLayoutAnalysis; - using Xunit; - + public class MathExtensionsTests { private static readonly DoubleComparer DoubleComparer = new DoubleComparer(3); diff --git a/src/UglyToad.PdfPig.Tests/Dla/NearestNeighbourWordExtractorTests.cs b/src/UglyToad.PdfPig.Tests/Dla/NearestNeighbourWordExtractorTests.cs index 4a733158e..90ac77482 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/NearestNeighbourWordExtractorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/NearestNeighbourWordExtractorTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System.Linq; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; - using Xunit; public class NearestNeighbourWordExtractorTests { diff --git a/src/UglyToad.PdfPig.Tests/Dla/RecursiveXYCutTests.cs b/src/UglyToad.PdfPig.Tests/Dla/RecursiveXYCutTests.cs index 69f9906fd..0d9d21858 100644 --- a/src/UglyToad.PdfPig.Tests/Dla/RecursiveXYCutTests.cs +++ b/src/UglyToad.PdfPig.Tests/Dla/RecursiveXYCutTests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Dla { - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; - using Xunit; - + public class RecursiveXYCutTests { public static IEnumerable DataExtract => new[] diff --git a/src/UglyToad.PdfPig.Tests/DoubleComparer.cs b/src/UglyToad.PdfPig.Tests/DoubleComparer.cs index ad3f61cd7..03b6f1a30 100644 --- a/src/UglyToad.PdfPig.Tests/DoubleComparer.cs +++ b/src/UglyToad.PdfPig.Tests/DoubleComparer.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace UglyToad.PdfPig.Tests +namespace UglyToad.PdfPig.Tests { internal class DoubleComparer : IEqualityComparer { diff --git a/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs b/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs index 1ae275257..90c65d7ae 100644 --- a/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs +++ b/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs @@ -1,6 +1,4 @@ -using Xunit; - -namespace UglyToad.PdfPig.Tests.Encryption +namespace UglyToad.PdfPig.Tests.Encryption { using PdfPig.Core; using PdfPig.Encryption; diff --git a/src/UglyToad.PdfPig.Tests/Encryption/RC4Tests.cs b/src/UglyToad.PdfPig.Tests/Encryption/RC4Tests.cs index f7896acf3..8493de780 100644 --- a/src/UglyToad.PdfPig.Tests/Encryption/RC4Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Encryption/RC4Tests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Encryption { - using System.Linq; using PdfPig.Encryption; using PdfPig.Tokens; - using Xunit; public class RC4Tests { diff --git a/src/UglyToad.PdfPig.Tests/Filters/Ascii85FilterTests.cs b/src/UglyToad.PdfPig.Tests/Filters/Ascii85FilterTests.cs index c7d3bf7ca..a408ebe16 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/Ascii85FilterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/Ascii85FilterTests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Filters { - using System; - using System.Collections.Generic; using System.Text; using PdfPig.Filters; using PdfPig.Tokens; - using Xunit; public class Ascii85FilterTests { diff --git a/src/UglyToad.PdfPig.Tests/Filters/AsciiHexDecodeFilterTests.cs b/src/UglyToad.PdfPig.Tests/Filters/AsciiHexDecodeFilterTests.cs index cd2fee970..0cf31418b 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/AsciiHexDecodeFilterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/AsciiHexDecodeFilterTests.cs @@ -1,12 +1,9 @@ namespace UglyToad.PdfPig.Tests.Filters { - using System; - using System.Collections.Generic; using System.Text; using PdfPig.Filters; using PdfPig.Tokens; - using Xunit; - + public class AsciiHexDecodeFilterTests { private readonly DictionaryToken dictionary = new DictionaryToken(new Dictionary()); diff --git a/src/UglyToad.PdfPig.Tests/Filters/BitStreamTests.cs b/src/UglyToad.PdfPig.Tests/Filters/BitStreamTests.cs index a0b152bac..98fd49ef6 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/BitStreamTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/BitStreamTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Filters { using PdfPig.Filters; - using Xunit; public class BitStreamTests { diff --git a/src/UglyToad.PdfPig.Tests/Filters/CcittFaxDecodeFilterTests.cs b/src/UglyToad.PdfPig.Tests/Filters/CcittFaxDecodeFilterTests.cs index 27ae17334..63d54d816 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/CcittFaxDecodeFilterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/CcittFaxDecodeFilterTests.cs @@ -1,10 +1,8 @@ namespace UglyToad.PdfPig.Tests.Filters { - using System.Collections.Generic; using UglyToad.PdfPig.Filters; using UglyToad.PdfPig.Tests.Images; using UglyToad.PdfPig.Tokens; - using Xunit; public class CcittFaxDecodeFilterTests { diff --git a/src/UglyToad.PdfPig.Tests/Filters/DecodeParameterResolverTests.cs b/src/UglyToad.PdfPig.Tests/Filters/DecodeParameterResolverTests.cs index 357dd1198..1cac807db 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/DecodeParameterResolverTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/DecodeParameterResolverTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.Filters { - using System; - using System.Collections.Generic; using PdfPig.Tokens; using PdfPig.Filters; - using Xunit; public class DecodeParameterResolverTests { diff --git a/src/UglyToad.PdfPig.Tests/Filters/FlateFilterTests.cs b/src/UglyToad.PdfPig.Tests/Filters/FlateFilterTests.cs index 9d6ff737f..2b8bd684d 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/FlateFilterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/FlateFilterTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.Filters { - using System.Collections.Generic; - using System.IO; using PdfPig.Filters; using PdfPig.Tokens; - using Xunit; public class FlateFilterTests { diff --git a/src/UglyToad.PdfPig.Tests/Filters/RunLengthFilterTests.cs b/src/UglyToad.PdfPig.Tests/Filters/RunLengthFilterTests.cs index 023483f29..0bfa5feff 100644 --- a/src/UglyToad.PdfPig.Tests/Filters/RunLengthFilterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Filters/RunLengthFilterTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Filters { - using System.Collections.Generic; using PdfPig.Filters; using PdfPig.Tokens; - using Xunit; public class RunLengthFilterTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs index 71efdc6d8..85918411b 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Fonts { - using System.Text; using PdfPig.Core; - using PdfPig.Geometry; - using Xunit; + using System.Text; public class CharacterPathTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs index 31c1ee810..821184360 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.CidFonts { - using System.Collections.Generic; using PdfFonts.CidFonts; using PdfPig.Geometry; - using Xunit; public class VerticalWritingMetricsTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs index 9abc76227..7cb6185d0 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs @@ -1,9 +1,7 @@ // ReSharper disable ObjectCreationAsStatement namespace UglyToad.PdfPig.Tests.Fonts.Cmap { - using System; using PdfFonts.Cmap; - using Xunit; public class CidRangeTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs index 48c6a7300..c35ecd180 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs @@ -1,13 +1,10 @@ namespace UglyToad.PdfPig.Tests.Fonts.Cmap { - using System; - using System.Linq; using PdfFonts.Cmap; using PdfPig.Tokens; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.PdfFonts.Parser.Parts; using UglyToad.PdfPig.Tokenization.Scanner; - using Xunit; public class CodespaceRangeTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs index 1231c91c5..556ce7d88 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs @@ -1,10 +1,6 @@ namespace UglyToad.PdfPig.Tests.Fonts.CompactFontFormat { - using System; - using System.IO; - using System.Linq; using PdfPig.Fonts.CompactFontFormat; - using Xunit; public class CompactFontFormatParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/Type2CharStringParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/Type2CharStringParserTests.cs index cd5f92d34..8f7a72192 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/Type2CharStringParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/Type2CharStringParserTests.cs @@ -3,8 +3,6 @@ using PdfPig.Fonts.CompactFontFormat; using PdfPig.Fonts.CompactFontFormat.Charsets; using PdfPig.Fonts.CompactFontFormat.CharStrings; - using System; - using Xunit; public class Type2CharStringParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs index 62c7040e7..6dbad2608 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Fonts.Encodings { - using System; - using System.IO; using PdfPig.Fonts; - using Xunit; public class GlyphListFactoryTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs index f534eaf72..836f0d9cb 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Fonts.Encodings { - using System.Collections.Generic; using PdfPig.Fonts; - using Xunit; public class GlyphListTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs index b79899ea3..94ab700f9 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.Parser { - using System; - using System.IO; using PdfPig.Core; using PdfPig.Fonts.AdobeFontMetrics; - using Xunit; public class AdobeFontMetricsParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs index 41aeee126..0c2d26b93 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Fonts.Parser { - using System.Collections.Generic; using System.Diagnostics; - using System.IO; using PdfFonts.Parser; using PdfPig.Core; - using Xunit; public class CMapParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs index 2941fb4b9..975893ca4 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs @@ -3,7 +3,6 @@ using PdfFonts.Cmap; using PdfFonts.Parser.Parts; using PdfPig.Tokens; - using Xunit; public class BaseFontRangeParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/PointSizeTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/PointSizeTests.cs index 1f8d034cc..55ddff5fc 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/PointSizeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/PointSizeTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Fonts { using UglyToad.PdfPig.Tests.Dla; - using Xunit; public class PointSizeTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs index ed13d340e..94452de76 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Fonts { using PdfPig.Fonts.Standard14Fonts; - using Xunit; public class Standard14Tests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/SystemFonts/Linux.cs b/src/UglyToad.PdfPig.Tests/Fonts/SystemFonts/Linux.cs index a61b25756..ecd4c305d 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/SystemFonts/Linux.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/SystemFonts/Linux.cs @@ -1,7 +1,5 @@ -using System.Collections.Generic; -using UglyToad.PdfPig.Fonts.SystemFonts; +using UglyToad.PdfPig.Fonts.SystemFonts; using UglyToad.PdfPig.Tests.Dla; -using Xunit; namespace UglyToad.PdfPig.Tests.Fonts.SystemFonts { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs index 302d57bb3..41e510eee 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs @@ -5,11 +5,9 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType.Parser; using PdfPig.Fonts.TrueType.Tables; - using System; using System.Globalization; using System.Text; using System.Text.RegularExpressions; - using Xunit; public class TrueTypeFontParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs index 5cf4a4be3..903b93129 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Tables { - using System.IO; - using System.Linq; using PdfPig.Core; using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType.Parser; - using Xunit; public class Os2TableTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs index 8aad4535a..26a48efb0 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs @@ -1,12 +1,8 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType { - using System; - using System.IO; - using System.Linq; using PdfPig.Core; using PdfPig.Fonts.TrueType; using PdfPig.Fonts.TrueType.Parser; - using Xunit; public class TrueTypeChecksumCalculatorTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs index 2d5410a88..02fe3d385 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Core; using PdfPig.Fonts.TrueType; - using Xunit; public class TrueTypeDataBytesTests { diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeTestHelper.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeTestHelper.cs index cc13d1dc2..c24340f2e 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeTestHelper.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeTestHelper.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType { - using System; - using System.IO; - internal static class TrueTypeTestHelper { public static byte[] GetFileBytes(string name) diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1CharStringParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1CharStringParserTests.cs index f4d01ecf4..7c1911132 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1CharStringParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1CharStringParserTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Fonts.Type1 { using UglyToad.PdfPig.Core; - using Xunit; using Integration; public class Type1CharStringParserTests diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs index da1e0f1ee..1c8d58eb1 100644 --- a/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs @@ -1,13 +1,8 @@ namespace UglyToad.PdfPig.Tests.Fonts.Type1 { - using System; - using System.IO; - using System.Linq; using System.Text; using PdfPig.Core; using PdfPig.Fonts.Type1.Parser; - using PdfPig.Geometry; - using Xunit; public class Type1FontParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType0Tests.cs b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType0Tests.cs index e5b6ece97..a97f4b67c 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType0Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType0Tests.cs @@ -1,13 +1,9 @@ namespace UglyToad.PdfPig.Tests.Functions { - using System; - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.Functions; using UglyToad.PdfPig.Tests.Tokens; using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Util; - using Xunit; public class PdfFunctionType0Tests { diff --git a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType2Tests.cs b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType2Tests.cs index 69b33e7fe..c6321006e 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType2Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType2Tests.cs @@ -1,13 +1,10 @@ namespace UglyToad.PdfPig.Tests.Functions { - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.Functions; using UglyToad.PdfPig.Tests.Tokens; using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Util; - using Xunit; - + public class PdfFunctionType2Tests { private static PdfFunctionType2 CreateFunction(double[] domain, double[] range, double[] c0, double[] c1, double n) diff --git a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType3Tests.cs b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType3Tests.cs index 70e9aaff1..81079898a 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType3Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType3Tests.cs @@ -1,9 +1,5 @@ namespace UglyToad.PdfPig.Tests.Functions { - using System; - using System.Collections.Generic; - using System.Text; - public class PdfFunctionType3Tests { // TODO diff --git a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType4Tests.cs b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType4Tests.cs index 6054e046e..e22ffface 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType4Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/PdfFunctionType4Tests.cs @@ -1,14 +1,11 @@ namespace UglyToad.PdfPig.Tests.Functions { - using System.Collections.Generic; - using System.Linq; using System.Text; using UglyToad.PdfPig.Functions; using UglyToad.PdfPig.Tests.Tokens; using UglyToad.PdfPig.Tokens; using UglyToad.PdfPig.Util; - using Xunit; - + public class PdfFunctionType4Tests { private static PdfFunctionType4 CreateFunction(string function, double[] domain, double[] range) diff --git a/src/UglyToad.PdfPig.Tests/Functions/Type4/OperatorsTests.cs b/src/UglyToad.PdfPig.Tests/Functions/Type4/OperatorsTests.cs index 466608779..525ad9393 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/Type4/OperatorsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/Type4/OperatorsTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Functions.Type4 { - using System; using UglyToad.PdfPig.Functions.Type4; - using Xunit; public class OperatorsTests { diff --git a/src/UglyToad.PdfPig.Tests/Functions/Type4/ParserTests.cs b/src/UglyToad.PdfPig.Tests/Functions/Type4/ParserTests.cs index ff85310f5..c25d8fc06 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/Type4/ParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/Type4/ParserTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Functions.Type4 { - using Xunit; - public class ParserTests { /// diff --git a/src/UglyToad.PdfPig.Tests/Functions/Type4/Type4Tester.cs b/src/UglyToad.PdfPig.Tests/Functions/Type4/Type4Tester.cs index 327322cdb..f85751b61 100644 --- a/src/UglyToad.PdfPig.Tests/Functions/Type4/Type4Tester.cs +++ b/src/UglyToad.PdfPig.Tests/Functions/Type4/Type4Tester.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Functions.Type4 { - using System; using System.Globalization; using UglyToad.PdfPig.Functions.Type4; - using Xunit; /// /// Testing helper class for testing type 4 functions from the PDF specification. diff --git a/src/UglyToad.PdfPig.Tests/Geometry/BezierCurveTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/BezierCurveTests.cs index 3fc7ebcbe..0e8dde120 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/BezierCurveTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/BezierCurveTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Geometry { - using System.Collections.Generic; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Geometry; - using Xunit; using static UglyToad.PdfPig.Core.PdfSubpath; public class BezierCurveTests diff --git a/src/UglyToad.PdfPig.Tests/Geometry/ClippingTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/ClippingTests.cs index f73e82fd0..fa860d16b 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/ClippingTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/ClippingTests.cs @@ -1,5 +1,4 @@ using UglyToad.PdfPig.Tests.Integration; -using Xunit; namespace UglyToad.PdfPig.Tests.Geometry { diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs index 1d7574859..6edf40eec 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs @@ -2,8 +2,6 @@ { using PdfPig.Core; using PdfPig.Geometry; - using System.Collections.Generic; - using Xunit; public class PdfLineTests { diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfPathExtensionsTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfPathExtensionsTests.cs index 2f27ec3dc..6a0b14963 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/PdfPathExtensionsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfPathExtensionsTests.cs @@ -1,10 +1,8 @@ namespace UglyToad.PdfPig.Tests.Geometry { - using System.Linq; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Geometry; using UglyToad.PdfPig.Tests.Integration; - using Xunit; public class PdfPathExtensionsTests { diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs index 600ce40e6..9afdb8713 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.Geometry { using PdfPig.Core; - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.Geometry; - using Xunit; public class PdfPointTests { diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs index adb67ddc5..40364341b 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs @@ -3,8 +3,6 @@ using Content; using PdfPig.Geometry; using PdfPig.Core; - using Xunit; - using System.Collections.Generic; using System.Drawing; public class PdfRectangleTests diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfSubpathLineTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfSubpathLineTests.cs index 7f2dbe398..5122eea05 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/PdfSubpathLineTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfSubpathLineTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Geometry { - using System.Collections.Generic; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Geometry; - using Xunit; using static UglyToad.PdfPig.Core.PdfSubpath; public class PdfSubpathLineTests diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfVectorTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfVectorTests.cs index 9b150078f..0f9d7c2f6 100644 --- a/src/UglyToad.PdfPig.Tests/Geometry/PdfVectorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfVectorTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Geometry { using PdfPig.Geometry; - using Xunit; public class PdfVectorTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/ContentStreamProcessorTests.cs b/src/UglyToad.PdfPig.Tests/Graphics/ContentStreamProcessorTests.cs index 97e7061d9..a092966e2 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/ContentStreamProcessorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/ContentStreamProcessorTests.cs @@ -4,7 +4,6 @@ using PdfPig.Core; using PdfPig.Geometry; using PdfPig.Graphics; - using Xunit; public class ContentStreamProcessorTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/Operations/General/SetMiterLimitTests.cs b/src/UglyToad.PdfPig.Tests/Graphics/Operations/General/SetMiterLimitTests.cs index 2ea23419a..59e67c08b 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/Operations/General/SetMiterLimitTests.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/Operations/General/SetMiterLimitTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Graphics.Operations.General { using PdfPig.Graphics.Operations.General; - using Xunit; public class SetMiterLimitTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/Operations/GraphicsStateOperationTests.cs b/src/UglyToad.PdfPig.Tests/Graphics/Operations/GraphicsStateOperationTests.cs index b48814f22..8261ab20f 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/Operations/GraphicsStateOperationTests.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/Operations/GraphicsStateOperationTests.cs @@ -1,14 +1,9 @@ namespace UglyToad.PdfPig.Tests.Graphics.Operations { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; using System.Reflection; using PdfPig.Graphics.Operations; using PdfPig.Graphics.Operations.InlineImages; using PdfPig.Tokens; - using Xunit; public class GraphicsStateOperationTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PopTests.cs b/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PopTests.cs index 237a04316..97ac12958 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PopTests.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PopTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState { - using System; using PdfPig.Graphics; using PdfPig.Graphics.Operations.SpecialGraphicsState; - using Xunit; public class PopTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PushTests.cs b/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PushTests.cs index 8d6764243..535344d4f 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PushTests.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/Operations/SpecialGraphicsState/PushTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState { using PdfPig.Graphics.Operations.SpecialGraphicsState; - using Xunit; public class PushTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/Operations/TextState/SetFontAndSizeTests.cs b/src/UglyToad.PdfPig.Tests/Graphics/Operations/TextState/SetFontAndSizeTests.cs index 0be5059cf..9002ac800 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/Operations/TextState/SetFontAndSizeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/Operations/TextState/SetFontAndSizeTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Graphics.Operations.TextState { - using System; using PdfPig.Graphics.Operations.TextState; using PdfPig.Tokens; - using Xunit; public class SetFontAndSizeTests { diff --git a/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs b/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs index 5926b8f5a..e9b29dca7 100644 --- a/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs +++ b/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs @@ -1,13 +1,11 @@ namespace UglyToad.PdfPig.Tests.Graphics { - using System.Collections.Generic; using Content; using Logging; using PdfFonts; using PdfPig.Graphics; using PdfPig.Tokens; using PdfPig.Core; - using System; using Tokens; using UglyToad.PdfPig.Graphics.Core; using UglyToad.PdfPig.Graphics.Operations.TextPositioning; diff --git a/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs b/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs index 2e814258c..95d986ab9 100644 --- a/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs +++ b/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.IO { - using System.IO; - using System.Linq; using PdfPig.Core; - using Xunit; - + public class InputBytesTests { private const string TestData = @"123456789"; diff --git a/src/UglyToad.PdfPig.Tests/Images/ImageHelpers.cs b/src/UglyToad.PdfPig.Tests/Images/ImageHelpers.cs index 17a2b45b1..f42b936da 100644 --- a/src/UglyToad.PdfPig.Tests/Images/ImageHelpers.cs +++ b/src/UglyToad.PdfPig.Tests/Images/ImageHelpers.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tests.Images { - using System; using System.IO; using System.IO.Compression; using UglyToad.PdfPig.Images.Png; diff --git a/src/UglyToad.PdfPig.Tests/Images/JpegHandlerTests.cs b/src/UglyToad.PdfPig.Tests/Images/JpegHandlerTests.cs index 45d6d96b9..b64128504 100644 --- a/src/UglyToad.PdfPig.Tests/Images/JpegHandlerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Images/JpegHandlerTests.cs @@ -1,18 +1,12 @@ namespace UglyToad.PdfPig.Tests.Images { - using System; - using System.IO; - using Xunit; using JpegHandler = UglyToad.PdfPig.Images.JpegHandler; public class JpegHandlerTests - { - - + { [Fact] public void CanGetJpegInformation() { - var dataJpg = LoadJpg("218995467-ccb746b0-dc28-4616-bcb1-4ad685f81876.jpg"); using (var ms = new MemoryStream(dataJpg)) @@ -23,9 +17,7 @@ public void CanGetJpegInformation() Assert.Equal(2290, jpegInfo.Height); Assert.Equal(1648, jpegInfo.Width); } - } - - + } private static byte[] LoadJpg(string name) { diff --git a/src/UglyToad.PdfPig.Tests/Images/PngFromPdfImageFactoryTests.cs b/src/UglyToad.PdfPig.Tests/Images/PngFromPdfImageFactoryTests.cs index 927c0fd56..9d6b24b76 100644 --- a/src/UglyToad.PdfPig.Tests/Images/PngFromPdfImageFactoryTests.cs +++ b/src/UglyToad.PdfPig.Tests/Images/PngFromPdfImageFactoryTests.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests.Images { - using System.Collections.Generic; - using System.Linq; using UglyToad.PdfPig.Graphics.Colors; using UglyToad.PdfPig.Images.Png; - using Xunit; public class PngFromPdfImageFactoryTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/AccentedCharactersInBookmarksTests.cs b/src/UglyToad.PdfPig.Tests/Integration/AccentedCharactersInBookmarksTests.cs index 2608e6c27..a9eb5ffa0 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AccentedCharactersInBookmarksTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AccentedCharactersInBookmarksTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration; -using System.Linq; -using Xunit; - public class AccentedCharactersInBookmarksTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/AcroFormsBasicFieldsTests.cs b/src/UglyToad.PdfPig.Tests/Integration/AcroFormsBasicFieldsTests.cs index be5df990e..9f0f73931 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AcroFormsBasicFieldsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AcroFormsBasicFieldsTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Linq; using AcroForms.Fields; - using Xunit; public class AcroFormsBasicFieldsTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/AdvancedPdfDocumentAccessTests.cs b/src/UglyToad.PdfPig.Tests/Integration/AdvancedPdfDocumentAccessTests.cs index fd4ce14cb..eb5870cc3 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AdvancedPdfDocumentAccessTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AdvancedPdfDocumentAccessTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { using PdfPig.Tokens; - using System.Collections.Generic; - using Xunit; public class AdvancedPdfDocumentAccessTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/AltoXmlTextExporterTests.cs b/src/UglyToad.PdfPig.Tests/Integration/AltoXmlTextExporterTests.cs index caa92a1dc..3287a7929 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AltoXmlTextExporterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AltoXmlTextExporterTests.cs @@ -1,14 +1,10 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; - using System.Linq; using System.Text; using System.Xml; using UglyToad.PdfPig.DocumentLayoutAnalysis.Export; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.Util; - using Xunit; public class AltoXmlTextExporterTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/AnnotationReplyToTests.cs b/src/UglyToad.PdfPig.Tests/Integration/AnnotationReplyToTests.cs index ce5b693d5..83660a43a 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AnnotationReplyToTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AnnotationReplyToTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration; using Annotations; -using System.Linq; -using Xunit; public class AnnotationReplyToTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/AnnotationsTest.cs b/src/UglyToad.PdfPig.Tests/Integration/AnnotationsTest.cs index 4b86a3a62..cf3808f8c 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AnnotationsTest.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AnnotationsTest.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { using Actions; - using System.Linq; - using Xunit; public class AnnotationsTest { diff --git a/src/UglyToad.PdfPig.Tests/Integration/AssertablePositionData.cs b/src/UglyToad.PdfPig.Tests/Integration/AssertablePositionData.cs index eeb5ea1e2..c7e8beb58 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/AssertablePositionData.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/AssertablePositionData.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; using System.Globalization; using Content; - using Xunit; public class AssertablePositionData { diff --git a/src/UglyToad.PdfPig.Tests/Integration/CatGeneticsTests.cs b/src/UglyToad.PdfPig.Tests/Integration/CatGeneticsTests.cs index bc790b768..5072f4efa 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/CatGeneticsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/CatGeneticsTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; using Annotations; - using Xunit; public class CatGeneticsTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/ColorSpaceTests.cs b/src/UglyToad.PdfPig.Tests/Integration/ColorSpaceTests.cs index 5fa9acfad..fa2b2482b 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/ColorSpaceTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/ColorSpaceTests.cs @@ -1,12 +1,8 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; - using System.Linq; using UglyToad.PdfPig.Content; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; using UglyToad.PdfPig.Graphics.Colors; - using Xunit; public class ColorSpaceTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs b/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs index 112800427..1503bfbfb 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Core; using PdfPig.Tokens; - using Xunit; public class DocumentInformationTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/EmbeddedFileAttachmentTests.cs b/src/UglyToad.PdfPig.Tests/Integration/EmbeddedFileAttachmentTests.cs index 958c1a0e4..7c4178b98 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/EmbeddedFileAttachmentTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/EmbeddedFileAttachmentTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class EmbeddedFileAttachmentTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/EncodingsTests.cs b/src/UglyToad.PdfPig.Tests/Integration/EncodingsTests.cs index afe5164c3..deeda366f 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/EncodingsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/EncodingsTests.cs @@ -2,8 +2,6 @@ { using PdfPig.Core; using PdfPig.Geometry; - using System.Linq; - using Xunit; public class EncodingsTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/EncryptedDocumentTests.cs b/src/UglyToad.PdfPig.Tests/Integration/EncryptedDocumentTests.cs index 70daebdf6..e62633a60 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/EncryptedDocumentTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/EncryptedDocumentTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; using Exceptions; - using Xunit; public class EncryptedDocumentTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/FarmerMacTests.cs b/src/UglyToad.PdfPig.Tests/Integration/FarmerMacTests.cs index 01fc3a187..82f731509 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/FarmerMacTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/FarmerMacTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; - using Xunit; - public class FarmerMacTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/FontDescriptorTests.cs b/src/UglyToad.PdfPig.Tests/Integration/FontDescriptorTests.cs index 4b41ff67c..ea3f29e3a 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/FontDescriptorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/FontDescriptorTests.cs @@ -1,12 +1,7 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; using System.Text; using UglyToad.PdfPig.Content; - using Xunit; public class FontDescriptorTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromGoogleChromeTests.cs b/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromGoogleChromeTests.cs index 4333af7cc..49b100a9b 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromGoogleChromeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromGoogleChromeTests.cs @@ -1,10 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; - using System.Linq; using Content; - using Xunit; public class FontSizeTestFromGoogleChromeTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromLibreOfficeTests.cs b/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromLibreOfficeTests.cs index 9aea6cafd..50a92ac88 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromLibreOfficeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/FontSizeTestFromLibreOfficeTests.cs @@ -1,10 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; - using System.Linq; using Content; - using Xunit; public class FontSizeTestFromLibreOfficeTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/GamebookTests.cs b/src/UglyToad.PdfPig.Tests/Integration/GamebookTests.cs index 6d63507f9..025aee599 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/GamebookTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/GamebookTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class GamebookTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/HOcrTextExporterTests.cs b/src/UglyToad.PdfPig.Tests/Integration/HOcrTextExporterTests.cs index e0646218d..23826b386 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/HOcrTextExporterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/HOcrTextExporterTests.cs @@ -1,13 +1,10 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; using System.Text; using System.Xml; using UglyToad.PdfPig.DocumentLayoutAnalysis.Export; using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.Util; - using Xunit; public class HOcrTextExporterTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/IndexedPageSummaryFileTests.cs b/src/UglyToad.PdfPig.Tests/Integration/IndexedPageSummaryFileTests.cs index beeea4b8e..dd9e9f868 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/IndexedPageSummaryFileTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/IndexedPageSummaryFileTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration; -using System.Linq; -using Xunit; - public class IndexedPageSummaryFileTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/IntegrationDocumentTests.cs b/src/UglyToad.PdfPig.Tests/Integration/IntegrationDocumentTests.cs index a66df5695..842dfa7d1 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/IntegrationDocumentTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/IntegrationDocumentTests.cs @@ -1,11 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; - using Xunit; - public class IntegrationDocumentTests { private static readonly Lazy DocumentFolder = new Lazy(() => Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Integration", "Documents"))); diff --git a/src/UglyToad.PdfPig.Tests/Integration/IntegrationHelpers.cs b/src/UglyToad.PdfPig.Tests/Integration/IntegrationHelpers.cs index 22188141b..851ac6095 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/IntegrationHelpers.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/IntegrationHelpers.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; - internal static class IntegrationHelpers { public static string GetDocumentPath(string name, bool isPdf = true) diff --git a/src/UglyToad.PdfPig.Tests/Integration/InvalidObjectLoopTests.cs b/src/UglyToad.PdfPig.Tests/Integration/InvalidObjectLoopTests.cs index 316890b29..17a132c0c 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/InvalidObjectLoopTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/InvalidObjectLoopTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class InvalidObjectLoopTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/InvalidOperator.cs b/src/UglyToad.PdfPig.Tests/Integration/InvalidOperator.cs index 41b9e42cb..fa226c7a1 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/InvalidOperator.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/InvalidOperator.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using Xunit; - public class InvalidOperatorTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/JudgementDocumentTests.cs b/src/UglyToad.PdfPig.Tests/Integration/JudgementDocumentTests.cs index f20221e30..adbdbaab3 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/JudgementDocumentTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/JudgementDocumentTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.IO; - using System.Linq; using Content; - using Xunit; public class JudgementDocumentTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs b/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs index 9d1049528..4b10cd4ec 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs @@ -2,13 +2,8 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; using PdfPig.Core; using DocumentLayoutAnalysis.Export; - using Xunit; public class LaTexTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/LittlePigInArmenianTests.cs b/src/UglyToad.PdfPig.Tests/Integration/LittlePigInArmenianTests.cs index 659459057..02688666e 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/LittlePigInArmenianTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/LittlePigInArmenianTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration; -using System.Linq; -using Xunit; - public class LittlePigInArmenianTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/LocalTests.cs b/src/UglyToad.PdfPig.Tests/Integration/LocalTests.cs index a5fa7ac19..ec34b3d72 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/LocalTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/LocalTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - //using System; //using System.Diagnostics; - //using System.IO; - //using Xunit; /// /// A class for testing files which are not checked in to source control. diff --git a/src/UglyToad.PdfPig.Tests/Integration/MarkedContentExtractionTests.cs b/src/UglyToad.PdfPig.Tests/Integration/MarkedContentExtractionTests.cs index 3eb06200c..4e83e0b66 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/MarkedContentExtractionTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/MarkedContentExtractionTests.cs @@ -1,5 +1,4 @@ using UglyToad.PdfPig.Content; -using Xunit; namespace UglyToad.PdfPig.Tests.Integration { diff --git a/src/UglyToad.PdfPig.Tests/Integration/Math119FakingDataTests.cs b/src/UglyToad.PdfPig.Tests/Integration/Math119FakingDataTests.cs index 9055c9bd8..6e4601973 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/Math119FakingDataTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/Math119FakingDataTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration; -using Xunit; - public class Math119FakingDataTests { [Fact] @@ -13,6 +11,5 @@ public void CombinesDiaeresisForWords() var words = lastPage.GetWords(); - } } \ No newline at end of file diff --git a/src/UglyToad.PdfPig.Tests/Integration/MultiplePageMortalityStatisticsTests.cs b/src/UglyToad.PdfPig.Tests/Integration/MultiplePageMortalityStatisticsTests.cs index addc07099..e448cf346 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/MultiplePageMortalityStatisticsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/MultiplePageMortalityStatisticsTests.cs @@ -1,11 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; using Content; - using Xunit; public class MultiplePageMortalityStatisticsTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/NonAsciiCharactersBookmarksTests.cs b/src/UglyToad.PdfPig.Tests/Integration/NonAsciiCharactersBookmarksTests.cs index 006164157..5fba06a4e 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/NonAsciiCharactersBookmarksTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/NonAsciiCharactersBookmarksTests.cs @@ -1,13 +1,9 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; - using System.Linq; using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Outline; using UglyToad.PdfPig.Outline.Destinations; using UglyToad.PdfPig.Writer; - using Xunit; public class NonAsciiCharactersBookmarksTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/OldGutnishTests.cs b/src/UglyToad.PdfPig.Tests/Integration/OldGutnishTests.cs index ffbbffbf8..55ed8a174 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/OldGutnishTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/OldGutnishTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; - using Xunit; - public class OldGutnishTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/OpenTypeFontTests.cs b/src/UglyToad.PdfPig.Tests/Integration/OpenTypeFontTests.cs index cea7a8424..e62a1e66a 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/OpenTypeFontTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/OpenTypeFontTests.cs @@ -1,7 +1,5 @@ -using System.Linq; -using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; +using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter; using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor; -using Xunit; namespace UglyToad.PdfPig.Tests.Integration { diff --git a/src/UglyToad.PdfPig.Tests/Integration/OptionalContentTests.cs b/src/UglyToad.PdfPig.Tests/Integration/OptionalContentTests.cs index 9c838a57a..fe7d94a5e 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/OptionalContentTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/OptionalContentTests.cs @@ -1,8 +1,4 @@ -using System; -using UglyToad.PdfPig.Tokens; -using Xunit; - -namespace UglyToad.PdfPig.Tests.Integration +namespace UglyToad.PdfPig.Tests.Integration { public class OptionalContentTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/PageContentTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PageContentTests.cs index 222c74a01..0bdf55526 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PageContentTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PageContentTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { using PdfPig.Core; - using Xunit; public class PageContentTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/PageFactoryTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PageFactoryTests.cs index eae5b54f6..71bdd650e 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PageFactoryTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PageFactoryTests.cs @@ -9,9 +9,6 @@ using PdfPig.Parser; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; - using System; - using System.Collections.Generic; - using Xunit; public class PageFactoryTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/PageXmlTextExporterTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PageXmlTextExporterTests.cs index 984ae1fb4..c4b0a6ff6 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PageXmlTextExporterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PageXmlTextExporterTests.cs @@ -5,14 +5,10 @@ using DocumentLayoutAnalysis.ReadingOrderDetector; using PdfPig.Core; using PdfPig.Util; - using System; - using System.IO; - using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Xml; using UglyToad.PdfPig.DocumentLayoutAnalysis.Export.PAGE; - using Xunit; public class PageXmlTextExporterTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/PatternColorTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PatternColorTests.cs index 7a3493a5c..a3e214776 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PatternColorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PatternColorTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Graphics.Colors; - using Xunit; public class PatternColorTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/PdfParserTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PdfParserTests.cs index f43aa16cd..79cc785d3 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PdfParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PdfParserTests.cs @@ -1,14 +1,9 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; using System.IO.Compression; - using System.Linq; using System.Text; using PdfPig.Filters; using PdfPig.Tokens; - using Xunit; /* * catalog diff --git a/src/UglyToad.PdfPig.Tests/Integration/PigProductionHandbookTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PigProductionHandbookTests.cs index 3f18e1145..bdf97286c 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PigProductionHandbookTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PigProductionHandbookTests.cs @@ -1,11 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; - using Xunit; - public class PigProductionHandbookTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/PigReproductionPowerpointTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PigReproductionPowerpointTests.cs index 2ecfc37e0..59bcf1a84 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PigReproductionPowerpointTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PigReproductionPowerpointTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; - using Xunit; - public class PigReproductionPowerpointTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/PlosOneTests.cs b/src/UglyToad.PdfPig.Tests/Integration/PlosOneTests.cs index 3e6a3920d..025c0baa6 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PlosOneTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PlosOneTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class PlosOneTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/PopBugzilla37292Tests.cs b/src/UglyToad.PdfPig.Tests/Integration/PopBugzilla37292Tests.cs index 689b21674..c55f5fdb9 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/PopBugzilla37292Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/PopBugzilla37292Tests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class PopBugzilla37292Tests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/RotationAndCroppingTests.cs b/src/UglyToad.PdfPig.Tests/Integration/RotationAndCroppingTests.cs index a8adc6bf9..39ddb34c4 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/RotationAndCroppingTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/RotationAndCroppingTests.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; - using Xunit; - public class RotationAndCroppingTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/ShadingTests.cs b/src/UglyToad.PdfPig.Tests/Integration/ShadingTests.cs index 4c77b3fd1..81cd4f6d7 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/ShadingTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/ShadingTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class ShadingTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Integration/ShowTextEscapeText.cs b/src/UglyToad.PdfPig.Tests/Integration/ShowTextEscapeText.cs index 0ea5054c8..2c104cfd4 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/ShowTextEscapeText.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/ShowTextEscapeText.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; using UglyToad.PdfPig; using UglyToad.PdfPig.Writer; - using Xunit; public class ShowTextEscapeText { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageFormContentIText1Tests.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageFormContentIText1Tests.cs index 6d7cc9d9c..97862cce7 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageFormContentIText1Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageFormContentIText1Tests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; using System.Globalization; using System.IO; - using System.Linq; using Content; - using Xunit; public class SinglePageFormContentIText1Tests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageHyperlinksOpenOffice.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageHyperlinksOpenOffice.cs index e07379144..20a428240 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageHyperlinksOpenOffice.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageHyperlinksOpenOffice.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class SinglePageHyperlinksOpenOffice { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageInkscapeTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageInkscapeTests.cs index b29163b02..d020c7dbf 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageInkscapeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageInkscapeTests.cs @@ -1,10 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.Linq; - using Xunit; - public class SinglePageInkscapeTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageLibreOfficeImages.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageLibreOfficeImages.cs index 03e8f275d..d94e48f00 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageLibreOfficeImages.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageLibreOfficeImages.cs @@ -1,8 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.Linq; - using Xunit; - public class SinglePageLibreOfficeImages { private static string GetFilePath() => IntegrationHelpers.GetDocumentPath(@"Single Page Images - from libre office.pdf"); diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageNonLatinAcrobatDistillerTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageNonLatinAcrobatDistillerTests.cs index f38b98b51..cbf7af73b 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageNonLatinAcrobatDistillerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageNonLatinAcrobatDistillerTests.cs @@ -1,11 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; using Content; - using Xunit; public class SinglePageNonLatinAcrobatDistillerTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleGoogleChromeTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleGoogleChromeTests.cs index 4c4f8cae6..4253e0d97 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleGoogleChromeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleGoogleChromeTests.cs @@ -1,12 +1,7 @@ // ReSharper disable AccessToDisposedClosure namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; using Content; - using Xunit; public class SinglePageSimpleGoogleChromeTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleOpenOfficeTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleOpenOfficeTests.cs index b5f5499ef..9ca05f4eb 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleOpenOfficeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageSimpleOpenOfficeTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.IO; - using System.Linq; using Content; - using Xunit; public class SinglePageSimpleOpenOfficeTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SinglePageType1FontTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SinglePageType1FontTests.cs index 67fa1aa1c..0ad1b2589 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SinglePageType1FontTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SinglePageType1FontTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { using Content; - using Xunit; public class SinglePageType1FontTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/StreamProcessorTests.cs b/src/UglyToad.PdfPig.Tests/Integration/StreamProcessorTests.cs index 1d5d43c32..16f5a49cc 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/StreamProcessorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/StreamProcessorTests.cs @@ -12,9 +12,6 @@ using PdfPig.Parser; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; - using System.Collections.Generic; - using System.Linq; - using Xunit; public class StreamProcessorTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SvgTextExporterTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SvgTextExporterTests.cs index 5ec50a21e..c357a7ced 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SvgTextExporterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SvgTextExporterTests.cs @@ -1,11 +1,8 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System; - using System.IO; using System.Text; using System.Xml; using UglyToad.PdfPig.DocumentLayoutAnalysis.Export; - using Xunit; public class SvgTextExporterTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/SwedishTouringCarChampionshipTests.cs b/src/UglyToad.PdfPig.Tests/Integration/SwedishTouringCarChampionshipTests.cs index ed842a812..573ea4614 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/SwedishTouringCarChampionshipTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/SwedishTouringCarChampionshipTests.cs @@ -2,7 +2,6 @@ { using Content; using UglyToad.PdfPig.Images.Png; - using Xunit; public class SwedishTouringCarChampionshipTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/TwoPageTextOnlyLibreOfficeTests.cs b/src/UglyToad.PdfPig.Tests/Integration/TwoPageTextOnlyLibreOfficeTests.cs index 83340c313..bc8a01a4d 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/TwoPageTextOnlyLibreOfficeTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/TwoPageTextOnlyLibreOfficeTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.IO; using Content; - using Xunit; public class TwoPageTextOnlyLibreOfficeTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/Type0FontTests.cs b/src/UglyToad.PdfPig.Tests/Integration/Type0FontTests.cs index 20ecd5d08..c3c924a8f 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/Type0FontTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/Type0FontTests.cs @@ -1,9 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.IO; - using System.Linq; using Content; - using Xunit; public class Type0FontTests { diff --git a/src/UglyToad.PdfPig.Tests/Integration/Type0_CJK_FontTests.cs b/src/UglyToad.PdfPig.Tests/Integration/Type0_CJK_FontTests.cs index e86964228..bc8d59239 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/Type0_CJK_FontTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/Type0_CJK_FontTests.cs @@ -1,10 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using System.IO; - using System.Linq; - using Content; - using Xunit; - public class Type0_CJK_FontTests { private static string GetFilename() @@ -21,8 +16,7 @@ public void HasCorrectNumberOfPages() { Assert.Equal(95, document.NumberOfPages); } - } - + } [Fact] public void HasCorrectChineseCharacters() diff --git a/src/UglyToad.PdfPig.Tests/Integration/Type3FontTests.cs b/src/UglyToad.PdfPig.Tests/Integration/Type3FontTests.cs index 3fdbc907c..e13e148df 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/Type3FontTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/Type3FontTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Integration { - using Xunit; - public class Type3FontTests { private static string GetFilename() diff --git a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs index 304891010..551663237 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs @@ -2,9 +2,6 @@ { using PdfPig.Core; using SkiaSharp; - using System; - using System.IO; - using Xunit; public class GenerateLetterBoundingBoxImages { diff --git a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterGlyphImages.cs b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterGlyphImages.cs index d6d32f0ad..87d5db647 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterGlyphImages.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterGlyphImages.cs @@ -2,11 +2,8 @@ { using PdfPig.Core; using SkiaSharp; - using System; using System.IO; - using System.Linq; using UglyToad.PdfPig.Tests.Integration.VisualVerification.SkiaHelpers; - using Xunit; public class GenerateLetterGlyphImages { diff --git a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaExtensions.cs b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaExtensions.cs index 4e4035da9..9b55742d6 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaExtensions.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaExtensions.cs @@ -3,8 +3,6 @@ using PdfPig.Core; using PdfPig.Graphics.Colors; using SkiaSharp; - using System; - using System.Collections.Generic; internal static class SkiaExtensions { diff --git a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphPageFactory.cs b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphPageFactory.cs index d4aed9ff6..86054e48c 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphPageFactory.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphPageFactory.cs @@ -10,7 +10,6 @@ using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; using SkiaSharp; - using System.Collections.Generic; internal sealed class SkiaGlyphPageFactory : BasePageFactory { diff --git a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphStreamProcessor.cs b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphStreamProcessor.cs index 006e75219..3253cb1f3 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphStreamProcessor.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/SkiaHelpers/SkiaGlyphStreamProcessor.cs @@ -12,7 +12,6 @@ using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; using SkiaSharp; - using System.Collections.Generic; internal sealed class SkiaGlyphStreamProcessor : BaseStreamProcessor { diff --git a/src/UglyToad.PdfPig.Tests/Integration/XObjectFormTests.cs b/src/UglyToad.PdfPig.Tests/Integration/XObjectFormTests.cs index fb0a0406c..2ffb54d24 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/XObjectFormTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/XObjectFormTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Integration { using UglyToad.PdfPig.Core; - using Xunit; public class XObjectFormTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs index 1c7797ae3..979b07930 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests.Parser { - using System; - using System.IO; using System.Text.RegularExpressions; using Logging; using PdfPig.Core; @@ -14,7 +12,6 @@ using PdfPig.Graphics.Operations.TextState; using PdfPig.Parser; using PdfPig.Tokens; - using Xunit; public class PageContentParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs index 195e744db..cc4899866 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs @@ -1,12 +1,9 @@ // ReSharper disable ObjectCreationAsStatement namespace UglyToad.PdfPig.Tests.Parser.Parts { - using System; - using System.IO; using Integration; using PdfPig.Core; using PdfPig.Parser.Parts; - using Xunit; public class BruteForceSearcherTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/CrossReference/TableSubsectionDefinitionTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/CrossReference/TableSubsectionDefinitionTests.cs index f7d4ac104..1cac68ceb 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/CrossReference/TableSubsectionDefinitionTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/CrossReference/TableSubsectionDefinitionTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Parser.Parts.CrossReference { - using System; using PdfPig.Parser.Parts.CrossReference; - using Xunit; public class TableSubsectionDefinitionTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs index 2aef72498..ca84a8823 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs @@ -1,11 +1,9 @@ namespace UglyToad.PdfPig.Tests.Parser.Parts { - using System; using PdfPig.Core; using PdfPig.Parser.Parts; using PdfPig.Tokens; using Tokens; - using Xunit; public class DirectObjectFinderTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs index 22418c4b5..0e111c1f7 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs @@ -1,13 +1,10 @@ namespace UglyToad.PdfPig.Tests.Parser.Parts { - using System; using Logging; using PdfPig.Core; using PdfPig.Parser.FileStructure; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; - using System.Linq; - using Xunit; public class FileHeaderParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs index fc9b6f40f..4da0757fa 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs @@ -1,12 +1,9 @@ namespace UglyToad.PdfPig.Tests.Parser.Parts.FileStructure { - using System; - using System.Linq; using PdfPig.Core; using PdfPig.CrossReference; using PdfPig.Parser.FileStructure; using PdfPig.Tokenization.Scanner; - using Xunit; public class CrossReferenceTableParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs index 6c614113e..bc7617559 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs @@ -1,10 +1,8 @@ namespace UglyToad.PdfPig.Tests.Parser.Parts { - using System; using PdfPig.Core; using PdfPig.Parser.FileStructure; using PdfPig.Tokenization.Scanner; - using Xunit; public class FileTrailerFileTrailerParserTests { diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs index 93279860b..863457b6a 100644 --- a/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs +++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Parser.Parts { using PdfPig.Core; - using Xunit; public class ReadHelperTests { diff --git a/src/UglyToad.PdfPig.Tests/PointComparer.cs b/src/UglyToad.PdfPig.Tests/PointComparer.cs index df966585c..ba2706983 100644 --- a/src/UglyToad.PdfPig.Tests/PointComparer.cs +++ b/src/UglyToad.PdfPig.Tests/PointComparer.cs @@ -1,7 +1,5 @@ namespace UglyToad.PdfPig.Tests { - using System; - using System.Collections.Generic; using PdfPig.Core; internal class PointComparer : IEqualityComparer diff --git a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs index 1e15fd962..be508ecc8 100644 --- a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs +++ b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs @@ -1,11 +1,7 @@ namespace UglyToad.PdfPig.Tests { - using System; - using System.Collections.Generic; - using System.Linq; using System.Reflection; using PdfPig.Graphics.Operations; - using Xunit; public class PublicApiScannerTests { diff --git a/src/UglyToad.PdfPig.Tests/TestEnvironment.cs b/src/UglyToad.PdfPig.Tests/TestEnvironment.cs index 17545a27e..ded99e416 100644 --- a/src/UglyToad.PdfPig.Tests/TestEnvironment.cs +++ b/src/UglyToad.PdfPig.Tests/TestEnvironment.cs @@ -1,10 +1,7 @@ namespace UglyToad.PdfPig.Tests { - using System; - public static class TestEnvironment { - public static bool IsSingleByteNewLine(string s) => s.IndexOf('\r') < 0; - + public static bool IsSingleByteNewLine(string s) => s.IndexOf('\r') < 0; } } diff --git a/src/UglyToad.PdfPig.Tests/TestFilterProvider.cs b/src/UglyToad.PdfPig.Tests/TestFilterProvider.cs index b6240dba5..87f5d4a0e 100644 --- a/src/UglyToad.PdfPig.Tests/TestFilterProvider.cs +++ b/src/UglyToad.PdfPig.Tests/TestFilterProvider.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tests { - using System.Collections.Generic; using PdfPig.Filters; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; diff --git a/src/UglyToad.PdfPig.Tests/TestObjectLocationProvider.cs b/src/UglyToad.PdfPig.Tests/TestObjectLocationProvider.cs index 2a945d518..54e568a38 100644 --- a/src/UglyToad.PdfPig.Tests/TestObjectLocationProvider.cs +++ b/src/UglyToad.PdfPig.Tests/TestObjectLocationProvider.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tests { - using System.Collections.Generic; using PdfPig.Core; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; diff --git a/src/UglyToad.PdfPig.Tests/TestPdfImage.cs b/src/UglyToad.PdfPig.Tests/TestPdfImage.cs index 856b67328..9d620b7ca 100644 --- a/src/UglyToad.PdfPig.Tests/TestPdfImage.cs +++ b/src/UglyToad.PdfPig.Tests/TestPdfImage.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tests { - using System.Collections.Generic; using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Graphics.Colors; diff --git a/src/UglyToad.PdfPig.Tests/TestingLog.cs b/src/UglyToad.PdfPig.Tests/TestingLog.cs index a9f6b8b87..534033b5a 100644 --- a/src/UglyToad.PdfPig.Tests/TestingLog.cs +++ b/src/UglyToad.PdfPig.Tests/TestingLog.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tests { - using System; using Logging; public class TestingLog : ILog diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/ArrayTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/ArrayTokenizerTests.cs index 1ff89c3f7..7c0d2d81e 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/ArrayTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/ArrayTokenizerTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Tokenization { - using System.Collections.Generic; using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class ArrayTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/CommentTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/CommentTokenizerTests.cs index f76eaa84d..2aef755fb 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/CommentTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/CommentTokenizerTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class CommentTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/DictionaryTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/DictionaryTokenizerTests.cs index 55c05e270..97031fe41 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/DictionaryTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/DictionaryTokenizerTests.cs @@ -1,12 +1,9 @@ // ReSharper disable ParameterOnlyUsedForPreconditionCheck.Local namespace UglyToad.PdfPig.Tests.Tokenization { - using System; - using System.Collections.Generic; using PdfPig.Core; using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class DictionaryTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/EndOfLineTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/EndOfLineTokenizerTests.cs index d2c43864b..220d63fd1 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/EndOfLineTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/EndOfLineTokenizerTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class EndOfLineTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/HexTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/HexTokenizerTests.cs index b74d3de81..18e717815 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/HexTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/HexTokenizerTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class HexTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/NameTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/NameTokenizerTests.cs index d3b2b3104..154b23554 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/NameTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/NameTokenizerTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class NameTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/NumericTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/NumericTokenizerTests.cs index 57154ddf0..a3cb7c3be 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/NumericTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/NumericTokenizerTests.cs @@ -1,9 +1,7 @@ namespace UglyToad.PdfPig.Tests.Tokenization { - using System.Collections.Generic; using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class NumericTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/PlainTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/PlainTokenizerTests.cs index 9f2278b5d..d34d1b675 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/PlainTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/PlainTokenizerTests.cs @@ -2,7 +2,6 @@ { using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class PlainTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs index 8d2fa444d..89682804e 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs @@ -1,12 +1,9 @@ // ReSharper disable ParameterOnlyUsedForPreconditionCheck.Local namespace UglyToad.PdfPig.Tests.Tokenization.Scanner { - using System; - using System.Collections.Generic; using PdfPig.Core; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; - using Xunit; public class CoreTokenScannerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs index 06cdcc535..3ff8681f7 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs @@ -1,14 +1,10 @@ namespace UglyToad.PdfPig.Tests.Tokenization.Scanner { - using System; - using System.Collections.Generic; - using System.Linq; using System.Text; using PdfPig.Core; using PdfPig.Encryption; using PdfPig.Tokenization.Scanner; using PdfPig.Tokens; - using Xunit; public class PdfTokenScannerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs index b04597a63..ef8aba512 100644 --- a/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs @@ -3,7 +3,6 @@ using PdfPig.Core; using PdfPig.Tokenization; using PdfPig.Tokens; - using Xunit; public class StringTokenizerTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokens/ArrayTokenTests.cs b/src/UglyToad.PdfPig.Tests/Tokens/ArrayTokenTests.cs index 941872786..305706217 100644 --- a/src/UglyToad.PdfPig.Tests/Tokens/ArrayTokenTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokens/ArrayTokenTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Tokens { - using System; using PdfPig.Tokens; - using Xunit; public class ArrayTokenTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokens/BooleanTokenTests.cs b/src/UglyToad.PdfPig.Tests/Tokens/BooleanTokenTests.cs index d01d4c3fd..d81ecc280 100644 --- a/src/UglyToad.PdfPig.Tests/Tokens/BooleanTokenTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokens/BooleanTokenTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Tokens { using PdfPig.Tokens; - using Xunit; public class BooleanTokenTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs b/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs index 20542694d..ef375f673 100644 --- a/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs @@ -1,12 +1,9 @@ // ReSharper disable ObjectCreationAsStatement namespace UglyToad.PdfPig.Tests.Tokens { - using System; - using System.Collections.Generic; using PdfPig.Core; using PdfPig.Tokens; - using Xunit; - + public class DictionaryTokenTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Tokens/HexTokenTests.cs b/src/UglyToad.PdfPig.Tests/Tokens/HexTokenTests.cs index 92f8777a9..964b3f03c 100644 --- a/src/UglyToad.PdfPig.Tests/Tokens/HexTokenTests.cs +++ b/src/UglyToad.PdfPig.Tests/Tokens/HexTokenTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Tokens { using PdfPig.Tokens; - using Xunit; public class HexTokenTests { diff --git a/src/UglyToad.PdfPig.Tests/Tokens/TestPdfTokenScanner.cs b/src/UglyToad.PdfPig.Tests/Tokens/TestPdfTokenScanner.cs index 26022bec7..2c37615d6 100644 --- a/src/UglyToad.PdfPig.Tests/Tokens/TestPdfTokenScanner.cs +++ b/src/UglyToad.PdfPig.Tests/Tokens/TestPdfTokenScanner.cs @@ -1,8 +1,6 @@ // ReSharper disable ObjectCreationAsStatement namespace UglyToad.PdfPig.Tests.Tokens { - using System; - using System.Collections.Generic; using PdfPig.Core; using PdfPig.Tokenization; using PdfPig.Tokenization.Scanner; diff --git a/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj b/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj index 43d5ba611..a3c58e27d 100644 --- a/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj +++ b/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj @@ -9,6 +9,7 @@ true ..\pdfpig.snk 2.1.30 + enable @@ -132,4 +133,7 @@ PreserveNewest + + + diff --git a/src/UglyToad.PdfPig.Tests/Util/DateFormatHelperTests.cs b/src/UglyToad.PdfPig.Tests/Util/DateFormatHelperTests.cs index 294b29044..e61bfc41d 100644 --- a/src/UglyToad.PdfPig.Tests/Util/DateFormatHelperTests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/DateFormatHelperTests.cs @@ -1,14 +1,11 @@ namespace UglyToad.PdfPig.Tests.Util { - using System; - using System.Collections.Generic; using PdfPig.Util; - using Xunit; - + public class DateFormatHelperTests { - public static IEnumerable PositiveDateData = new[] - { + public static IEnumerable PositiveDateData = + [ new object[] {"D:20190710205447+01'00'", new DateTimeOffset(2019, 7, 10, 20, 54, 47, TimeSpan.FromHours(1))}, new object[] {"D:2017", new DateTimeOffset(2017, 1, 1, 0, 0, 0, TimeSpan.Zero)}, new object[] {"2017", new DateTimeOffset(2017, 1, 1, 0, 0, 0, TimeSpan.Zero)}, @@ -24,7 +21,7 @@ public class DateFormatHelperTests new object[] {"D:19970915110347-07'30'", new DateTimeOffset(1997, 9, 15, 11, 3, 47, new TimeSpan(-7, -30, 0))}, new object[] {"D:19990209153925+11'", new DateTimeOffset(1999, 2, 9, 15, 39, 25, TimeSpan.FromHours(11))}, new object[] {"D:19990209153925-03'", new DateTimeOffset(1999, 2, 9, 15, 39, 25, TimeSpan.FromHours(-3))}, - }; + ]; [Theory] [InlineData(default(string))] diff --git a/src/UglyToad.PdfPig.Tests/Util/DefaultWordExtractorTests.cs b/src/UglyToad.PdfPig.Tests/Util/DefaultWordExtractorTests.cs index 3b44dc440..f59655623 100644 --- a/src/UglyToad.PdfPig.Tests/Util/DefaultWordExtractorTests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/DefaultWordExtractorTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Util { using Integration; - using System.Linq; - using Xunit; public class DefaultWordExtractorTests { diff --git a/src/UglyToad.PdfPig.Tests/Util/HexTests.cs b/src/UglyToad.PdfPig.Tests/Util/HexTests.cs index 0e9ac6b48..5de6913e8 100644 --- a/src/UglyToad.PdfPig.Tests/Util/HexTests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/HexTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Util { - using System.Collections.Generic; using PdfPig.Util; - using Xunit; public class HexTests { diff --git a/src/UglyToad.PdfPig.Tests/Util/InternalStringExtensionsTests.cs b/src/UglyToad.PdfPig.Tests/Util/InternalStringExtensionsTests.cs index 0f376055e..4aa72dfde 100644 --- a/src/UglyToad.PdfPig.Tests/Util/InternalStringExtensionsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/InternalStringExtensionsTests.cs @@ -1,8 +1,6 @@ namespace UglyToad.PdfPig.Tests.Util { - using System; using PdfPig.Util; - using Xunit; public class InternalStringExtensionsTests { diff --git a/src/UglyToad.PdfPig.Tests/Util/Matrix3x3Tests.cs b/src/UglyToad.PdfPig.Tests/Util/Matrix3x3Tests.cs index 3e1cef080..8718dc3a3 100644 --- a/src/UglyToad.PdfPig.Tests/Util/Matrix3x3Tests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/Matrix3x3Tests.cs @@ -1,6 +1,5 @@ namespace UglyToad.PdfPig.Tests.Util { - using Xunit; using PdfPig.Util; public class Matrix3x3Tests diff --git a/src/UglyToad.PdfPig.Tests/Util/OctalHelpersTests.cs b/src/UglyToad.PdfPig.Tests/Util/OctalHelpersTests.cs index 638157b35..99e6d19fd 100644 --- a/src/UglyToad.PdfPig.Tests/Util/OctalHelpersTests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/OctalHelpersTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Util { using PdfPig.Core; - using Xunit; public class OctalHelpersTests { diff --git a/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs b/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs index e03812bce..0f013ebd6 100644 --- a/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs +++ b/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs @@ -1,7 +1,6 @@ namespace UglyToad.PdfPig.Tests.Util { using PdfPig.Core; - using Xunit; public class OtherEncodingsTests { diff --git a/src/UglyToad.PdfPig.Tests/Writer/Fonts/Standard14WritingFontTests.cs b/src/UglyToad.PdfPig.Tests/Writer/Fonts/Standard14WritingFontTests.cs index 9976f47b9..5f334ba39 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/Fonts/Standard14WritingFontTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/Fonts/Standard14WritingFontTests.cs @@ -1,22 +1,15 @@ namespace UglyToad.PdfPig.Tests.Writer.Fonts { - using System; - - using System.Linq; using PdfPig.Fonts; using PdfPig.Content; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Fonts.Standard14Fonts; using UglyToad.PdfPig.Writer; - using Xunit; using System.Reflection; - using System.Collections.Generic; using UglyToad.PdfPig.Fonts.AdobeFontMetrics; - using System.IO; using System.Diagnostics; - public class Standard14WritingFontTests { [Fact] diff --git a/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs b/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs index 9c097978b..26a112e4f 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs @@ -1,10 +1,8 @@ namespace UglyToad.PdfPig.Tests.Writer.Fonts { - using System.Collections.Generic; using PdfFonts.Parser; using PdfPig.Core; using PdfPig.Writer.Fonts; - using Xunit; public class ToUnicodeCMapBuilderTests { diff --git a/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs b/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs index d894e1c09..e995b1944 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs @@ -1,17 +1,12 @@ namespace UglyToad.PdfPig.Tests.Writer { - using System.IO; - using System.Linq; using Content; using Integration; using PdfPig.Core; using PdfPig.Fonts.Standard14Fonts; using PdfPig.Tokens; using PdfPig.Writer; - using System.Collections.Generic; using Tests.Fonts.TrueType; - using Xunit; - using System; using UglyToad.PdfPig.Graphics.Operations.InlineImages; using UglyToad.PdfPig.Outline; using UglyToad.PdfPig.Outline.Destinations; diff --git a/src/UglyToad.PdfPig.Tests/Writer/PdfMergerTests.cs b/src/UglyToad.PdfPig.Tests/Writer/PdfMergerTests.cs index ad6d34f97..68794dfb3 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/PdfMergerTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/PdfMergerTests.cs @@ -2,11 +2,6 @@ { using Integration; using PdfPig.Writer; - using System; - using System.Collections.Generic; - using System.IO; - using System.Linq; - using Xunit; public class PdfMergerTests { diff --git a/src/UglyToad.PdfPig.Tests/Writer/PdfPageBuilderTests.cs b/src/UglyToad.PdfPig.Tests/Writer/PdfPageBuilderTests.cs index 776d8aad0..23a06bc38 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/PdfPageBuilderTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/PdfPageBuilderTests.cs @@ -1,19 +1,12 @@ namespace UglyToad.PdfPig.Tests.Images { - using System; - using System.IO; - using System.Linq; using UglyToad.PdfPig; - using UglyToad.PdfPig.Content; using UglyToad.PdfPig.Core; using UglyToad.PdfPig.Fonts.Standard14Fonts; using UglyToad.PdfPig.Writer; - using Xunit; - + public class PdfPageBuilderTests { - - [Fact] public void CanAddPng() { @@ -45,7 +38,6 @@ public void CanAddPng() pdfBytes = pdfBuilder.Build(); } - File.WriteAllBytes(@"PdfPageBuilderTests_CanAddPng.pdf", pdfBytes); using (var doc = PdfDocument.Open(pdfBytes)) diff --git a/src/UglyToad.PdfPig.Tests/Writer/PdfTextRemoverTests.cs b/src/UglyToad.PdfPig.Tests/Writer/PdfTextRemoverTests.cs index 85239effa..f6d782047 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/PdfTextRemoverTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/PdfTextRemoverTests.cs @@ -1,7 +1,5 @@ -using System.IO; -using UglyToad.PdfPig.Tests.Integration; +using UglyToad.PdfPig.Tests.Integration; using UglyToad.PdfPig.Writer; -using Xunit; namespace UglyToad.PdfPig.Tests.Writer { diff --git a/src/UglyToad.PdfPig.Tests/Writer/TokenWriterTests.cs b/src/UglyToad.PdfPig.Tests/Writer/TokenWriterTests.cs index 18bc7d95a..a0058dd6a 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/TokenWriterTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/TokenWriterTests.cs @@ -1,14 +1,10 @@ namespace UglyToad.PdfPig.Tests.Writer { - using Integration; using PdfPig.Writer; - using System.IO; using UglyToad.PdfPig.Tokens; - using Xunit; public class TokenWriterTests { - [Fact] public void EscapeSpecialCharacter() { diff --git a/src/UglyToad.PdfPig.Tests/Writer/XmpTests.cs b/src/UglyToad.PdfPig.Tests/Writer/XmpTests.cs index e9568f7c7..8fb9d4702 100644 --- a/src/UglyToad.PdfPig.Tests/Writer/XmpTests.cs +++ b/src/UglyToad.PdfPig.Tests/Writer/XmpTests.cs @@ -3,9 +3,7 @@ using Integration; using PdfPig.Content; using PdfPig.Writer; - using System.Linq; using System.Xml.Linq; - using Xunit; public class XmpTests {