mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
[Tests] Enable implict usings
This commit is contained in:
parent
4e1c7930b7
commit
1d2777d59a
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.ContentStream
|
||||
{
|
||||
using PdfPig.Core;
|
||||
using Xunit;
|
||||
|
||||
public class IndirectReferenceTests
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Core
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using UglyToad.PdfPig.Core;
|
||||
using Xunit;
|
||||
|
||||
public class PdfSubpathTests
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Core
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using PdfPig.Core;
|
||||
using Xunit;
|
||||
|
||||
public class TransformationMatrixTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Dla
|
||||
{
|
||||
using System.Linq;
|
||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
||||
using Xunit;
|
||||
|
||||
public class NearestNeighbourWordExtractorTests
|
||||
{
|
||||
|
@ -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<object[]> DataExtract => new[]
|
||||
|
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UglyToad.PdfPig.Tests
|
||||
namespace UglyToad.PdfPig.Tests
|
||||
{
|
||||
internal class DoubleComparer : IEqualityComparer<double>
|
||||
{
|
||||
|
@ -1,6 +1,4 @@
|
||||
using Xunit;
|
||||
|
||||
namespace UglyToad.PdfPig.Tests.Encryption
|
||||
namespace UglyToad.PdfPig.Tests.Encryption
|
||||
{
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Encryption;
|
||||
|
@ -1,9 +1,7 @@
|
||||
namespace UglyToad.PdfPig.Tests.Encryption
|
||||
{
|
||||
using System.Linq;
|
||||
using PdfPig.Encryption;
|
||||
using PdfPig.Tokens;
|
||||
using Xunit;
|
||||
|
||||
public class RC4Tests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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<NameToken, IToken>());
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Filters
|
||||
{
|
||||
using PdfPig.Filters;
|
||||
using Xunit;
|
||||
|
||||
public class BitStreamTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,9 +1,7 @@
|
||||
namespace UglyToad.PdfPig.Tests.Filters
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using PdfPig.Filters;
|
||||
using PdfPig.Tokens;
|
||||
using Xunit;
|
||||
|
||||
public class RunLengthFilterTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,9 +1,7 @@
|
||||
// ReSharper disable ObjectCreationAsStatement
|
||||
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
|
||||
{
|
||||
using System;
|
||||
using PdfFonts.Cmap;
|
||||
using Xunit;
|
||||
|
||||
public class CidRangeTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,9 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
using PdfPig.Fonts;
|
||||
using Xunit;
|
||||
|
||||
public class GlyphListFactoryTests
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using PdfPig.Fonts;
|
||||
using Xunit;
|
||||
|
||||
public class GlyphListTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -3,7 +3,6 @@
|
||||
using PdfFonts.Cmap;
|
||||
using PdfFonts.Parser.Parts;
|
||||
using PdfPig.Tokens;
|
||||
using Xunit;
|
||||
|
||||
public class BaseFontRangeParserTests
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Fonts
|
||||
{
|
||||
using UglyToad.PdfPig.Tests.Dla;
|
||||
using Xunit;
|
||||
|
||||
public class PointSizeTests
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Fonts
|
||||
{
|
||||
using PdfPig.Fonts.Standard14Fonts;
|
||||
using Xunit;
|
||||
|
||||
public class Standard14Tests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -2,7 +2,6 @@
|
||||
{
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Fonts.TrueType;
|
||||
using Xunit;
|
||||
|
||||
public class TrueTypeDataBytesTests
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Fonts.Type1
|
||||
{
|
||||
using UglyToad.PdfPig.Core;
|
||||
using Xunit;
|
||||
using Integration;
|
||||
|
||||
public class Type1CharStringParserTests
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -1,9 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Functions
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
public class PdfFunctionType3Tests
|
||||
{
|
||||
// TODO
|
||||
|
@ -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)
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
||||
{
|
||||
using System;
|
||||
using UglyToad.PdfPig.Functions.Type4;
|
||||
using Xunit;
|
||||
|
||||
public class OperatorsTests
|
||||
{
|
||||
|
@ -1,7 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
||||
{
|
||||
using Xunit;
|
||||
|
||||
public class ParserTests
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -1,9 +1,7 @@
|
||||
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
||||
{
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using UglyToad.PdfPig.Functions.Type4;
|
||||
using Xunit;
|
||||
|
||||
/// <summary>
|
||||
/// Testing helper class for testing type 4 functions from the PDF specification.
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,4 @@
|
||||
using UglyToad.PdfPig.Tests.Integration;
|
||||
using Xunit;
|
||||
|
||||
namespace UglyToad.PdfPig.Tests.Geometry
|
||||
{
|
||||
|
@ -2,8 +2,6 @@
|
||||
{
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Geometry;
|
||||
using System.Collections.Generic;
|
||||
using Xunit;
|
||||
|
||||
public class PdfLineTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -3,8 +3,6 @@
|
||||
using Content;
|
||||
using PdfPig.Geometry;
|
||||
using PdfPig.Core;
|
||||
using Xunit;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
public class PdfRectangleTests
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Geometry
|
||||
{
|
||||
using PdfPig.Geometry;
|
||||
using Xunit;
|
||||
|
||||
public class PdfVectorTests
|
||||
{
|
||||
|
@ -4,7 +4,6 @@
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Geometry;
|
||||
using PdfPig.Graphics;
|
||||
using Xunit;
|
||||
|
||||
public class ContentStreamProcessorTests
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations.General
|
||||
{
|
||||
using PdfPig.Graphics.Operations.General;
|
||||
using Xunit;
|
||||
|
||||
public class SetMiterLimitTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
|
||||
{
|
||||
using PdfPig.Graphics.Operations.SpecialGraphicsState;
|
||||
using Xunit;
|
||||
|
||||
public class PushTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -1,6 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Images
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using UglyToad.PdfPig.Images.Png;
|
||||
|
@ -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 @@
|
||||
Assert.Equal(2290, jpegInfo.Height);
|
||||
Assert.Equal(1648, jpegInfo.Width);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static byte[] LoadJpg(string name)
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,8 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration;
|
||||
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class AccentedCharactersInBookmarksTests
|
||||
{
|
||||
[Fact]
|
||||
|
@ -1,9 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using System.Linq;
|
||||
using AcroForms.Fields;
|
||||
using Xunit;
|
||||
|
||||
public class AcroFormsBasicFieldsTests
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using PdfPig.Tokens;
|
||||
using System.Collections.Generic;
|
||||
using Xunit;
|
||||
|
||||
public class AdvancedPdfDocumentAccessTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration;
|
||||
|
||||
using Annotations;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class AnnotationReplyToTests
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using Actions;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class AnnotationsTest
|
||||
{
|
||||
|
@ -1,9 +1,7 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Content;
|
||||
using Xunit;
|
||||
|
||||
public class AssertablePositionData
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System.Linq;
|
||||
using Annotations;
|
||||
using Xunit;
|
||||
|
||||
public class CatGeneticsTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -2,7 +2,6 @@
|
||||
{
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Tokens;
|
||||
using Xunit;
|
||||
|
||||
public class DocumentInformationTests
|
||||
{
|
||||
|
@ -1,7 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using Xunit;
|
||||
|
||||
public class EmbeddedFileAttachmentTests
|
||||
{
|
||||
[Fact]
|
||||
|
@ -2,8 +2,6 @@
|
||||
{
|
||||
using PdfPig.Core;
|
||||
using PdfPig.Geometry;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class EncodingsTests
|
||||
{
|
||||
|
@ -1,9 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Exceptions;
|
||||
using Xunit;
|
||||
|
||||
public class EncryptedDocumentTests
|
||||
{
|
||||
|
@ -1,8 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class FarmerMacTests
|
||||
{
|
||||
private static string GetFilename()
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,10 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Content;
|
||||
using Xunit;
|
||||
|
||||
public class FontSizeTestFromGoogleChromeTests
|
||||
{
|
||||
|
@ -1,10 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Content;
|
||||
using Xunit;
|
||||
|
||||
public class FontSizeTestFromLibreOfficeTests
|
||||
{
|
||||
|
@ -1,7 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using Xunit;
|
||||
|
||||
public class GamebookTests
|
||||
{
|
||||
[Fact]
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,8 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration;
|
||||
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class IndexedPageSummaryFileTests
|
||||
{
|
||||
private static string GetFilename()
|
||||
|
@ -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<string> DocumentFolder = new Lazy<string>(() => Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Integration", "Documents")));
|
||||
|
@ -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)
|
||||
|
@ -1,7 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using Xunit;
|
||||
|
||||
public class InvalidObjectLoopTests
|
||||
{
|
||||
[Fact]
|
||||
|
@ -1,8 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using Xunit;
|
||||
|
||||
public class InvalidOperatorTests
|
||||
{
|
||||
[Fact]
|
||||
|
@ -1,9 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Content;
|
||||
using Xunit;
|
||||
|
||||
public class JudgementDocumentTests
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -1,8 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration;
|
||||
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class LittlePigInArmenianTests
|
||||
{
|
||||
[Fact]
|
||||
|
@ -1,9 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
//using System;
|
||||
//using System.Diagnostics;
|
||||
//using System.IO;
|
||||
//using Xunit;
|
||||
|
||||
/// <summary>
|
||||
/// A class for testing files which are not checked in to source control.
|
||||
|
@ -1,5 +1,4 @@
|
||||
using UglyToad.PdfPig.Content;
|
||||
using Xunit;
|
||||
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
|
@ -1,7 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration;
|
||||
|
||||
using Xunit;
|
||||
|
||||
public class Math119FakingDataTests
|
||||
{
|
||||
[Fact]
|
||||
@ -13,6 +11,5 @@ public class Math119FakingDataTests
|
||||
|
||||
var words = lastPage.GetWords();
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user