mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-07-15 13:03:07 +08:00
[Tests] Enable implict usings
This commit is contained in:
parent
4e1c7930b7
commit
1d2777d59a
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.ContentStream
|
namespace UglyToad.PdfPig.Tests.ContentStream
|
||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class IndirectReferenceTests
|
public class IndirectReferenceTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Core
|
namespace UglyToad.PdfPig.Tests.Core
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfSubpathTests
|
public class PdfSubpathTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Core
|
namespace UglyToad.PdfPig.Tests.Core
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class TransformationMatrixTests
|
public class TransformationMatrixTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class ArraySegmentExtensionsTests
|
public class ArraySegmentExtensionsTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class DistancesTest
|
public class DistancesTest
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
internal static class DlaHelper
|
internal static class DlaHelper
|
||||||
{
|
{
|
||||||
public static string GetDocumentPath(string name, bool isPdf = true)
|
public static string GetDocumentPath(string name, bool isPdf = true)
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
||||||
using UglyToad.PdfPig.Fonts.SystemFonts;
|
using UglyToad.PdfPig.Fonts.SystemFonts;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class DocstrumBoundingBoxesTests
|
public class DocstrumBoundingBoxesTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class KdTreeTests
|
public class KdTreeTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class MathExtensionsTests
|
public class MathExtensionsTests
|
||||||
{
|
{
|
||||||
private static readonly DoubleComparer DoubleComparer = new DoubleComparer(3);
|
private static readonly DoubleComparer DoubleComparer = new DoubleComparer(3);
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class NearestNeighbourWordExtractorTests
|
public class NearestNeighbourWordExtractorTests
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Dla
|
namespace UglyToad.PdfPig.Tests.Dla
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class RecursiveXYCutTests
|
public class RecursiveXYCutTests
|
||||||
{
|
{
|
||||||
public static IEnumerable<object[]> DataExtract => new[]
|
public static IEnumerable<object[]> DataExtract => new[]
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace UglyToad.PdfPig.Tests
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace UglyToad.PdfPig.Tests
|
|
||||||
{
|
{
|
||||||
internal class DoubleComparer : IEqualityComparer<double>
|
internal class DoubleComparer : IEqualityComparer<double>
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
using Xunit;
|
namespace UglyToad.PdfPig.Tests.Encryption
|
||||||
|
|
||||||
namespace UglyToad.PdfPig.Tests.Encryption
|
|
||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Encryption;
|
using PdfPig.Encryption;
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Encryption
|
namespace UglyToad.PdfPig.Tests.Encryption
|
||||||
{
|
{
|
||||||
using System.Linq;
|
|
||||||
using PdfPig.Encryption;
|
using PdfPig.Encryption;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class RC4Tests
|
public class RC4Tests
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using PdfPig.Filters;
|
using PdfPig.Filters;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class Ascii85FilterTests
|
public class Ascii85FilterTests
|
||||||
{
|
{
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using PdfPig.Filters;
|
using PdfPig.Filters;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AsciiHexDecodeFilterTests
|
public class AsciiHexDecodeFilterTests
|
||||||
{
|
{
|
||||||
private readonly DictionaryToken dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>());
|
private readonly DictionaryToken dictionary = new DictionaryToken(new Dictionary<NameToken, IToken>());
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using PdfPig.Filters;
|
using PdfPig.Filters;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class BitStreamTests
|
public class BitStreamTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using UglyToad.PdfPig.Filters;
|
using UglyToad.PdfPig.Filters;
|
||||||
using UglyToad.PdfPig.Tests.Images;
|
using UglyToad.PdfPig.Tests.Images;
|
||||||
using UglyToad.PdfPig.Tokens;
|
using UglyToad.PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CcittFaxDecodeFilterTests
|
public class CcittFaxDecodeFilterTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using PdfPig.Filters;
|
using PdfPig.Filters;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class DecodeParameterResolverTests
|
public class DecodeParameterResolverTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using PdfPig.Filters;
|
using PdfPig.Filters;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class FlateFilterTests
|
public class FlateFilterTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Filters
|
namespace UglyToad.PdfPig.Tests.Filters
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using PdfPig.Filters;
|
using PdfPig.Filters;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class RunLengthFilterTests
|
public class RunLengthFilterTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts
|
namespace UglyToad.PdfPig.Tests.Fonts
|
||||||
{
|
{
|
||||||
using System.Text;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Geometry;
|
using System.Text;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CharacterPathTests
|
public class CharacterPathTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.CidFonts
|
namespace UglyToad.PdfPig.Tests.Fonts.CidFonts
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using PdfFonts.CidFonts;
|
using PdfFonts.CidFonts;
|
||||||
using PdfPig.Geometry;
|
using PdfPig.Geometry;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class VerticalWritingMetricsTests
|
public class VerticalWritingMetricsTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
// ReSharper disable ObjectCreationAsStatement
|
// ReSharper disable ObjectCreationAsStatement
|
||||||
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
|
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using PdfFonts.Cmap;
|
using PdfFonts.Cmap;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CidRangeTests
|
public class CidRangeTests
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
|
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
using PdfFonts.Cmap;
|
using PdfFonts.Cmap;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using UglyToad.PdfPig.PdfFonts.Parser.Parts;
|
using UglyToad.PdfPig.PdfFonts.Parser.Parts;
|
||||||
using UglyToad.PdfPig.Tokenization.Scanner;
|
using UglyToad.PdfPig.Tokenization.Scanner;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CodespaceRangeTests
|
public class CodespaceRangeTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.CompactFontFormat
|
namespace UglyToad.PdfPig.Tests.Fonts.CompactFontFormat
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using PdfPig.Fonts.CompactFontFormat;
|
using PdfPig.Fonts.CompactFontFormat;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CompactFontFormatParserTests
|
public class CompactFontFormatParserTests
|
||||||
{
|
{
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
using PdfPig.Fonts.CompactFontFormat;
|
using PdfPig.Fonts.CompactFontFormat;
|
||||||
using PdfPig.Fonts.CompactFontFormat.Charsets;
|
using PdfPig.Fonts.CompactFontFormat.Charsets;
|
||||||
using PdfPig.Fonts.CompactFontFormat.CharStrings;
|
using PdfPig.Fonts.CompactFontFormat.CharStrings;
|
||||||
using System;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class Type2CharStringParserTests
|
public class Type2CharStringParserTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
|
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using PdfPig.Fonts;
|
using PdfPig.Fonts;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class GlyphListFactoryTests
|
public class GlyphListFactoryTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
|
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using PdfPig.Fonts;
|
using PdfPig.Fonts;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class GlyphListTests
|
public class GlyphListTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Parser
|
namespace UglyToad.PdfPig.Tests.Fonts.Parser
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Fonts.AdobeFontMetrics;
|
using PdfPig.Fonts.AdobeFontMetrics;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AdobeFontMetricsParserTests
|
public class AdobeFontMetricsParserTests
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Parser
|
namespace UglyToad.PdfPig.Tests.Fonts.Parser
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using PdfFonts.Parser;
|
using PdfFonts.Parser;
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CMapParserTests
|
public class CMapParserTests
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
using PdfFonts.Cmap;
|
using PdfFonts.Cmap;
|
||||||
using PdfFonts.Parser.Parts;
|
using PdfFonts.Parser.Parts;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class BaseFontRangeParserTests
|
public class BaseFontRangeParserTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts
|
namespace UglyToad.PdfPig.Tests.Fonts
|
||||||
{
|
{
|
||||||
using UglyToad.PdfPig.Tests.Dla;
|
using UglyToad.PdfPig.Tests.Dla;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PointSizeTests
|
public class PointSizeTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts
|
namespace UglyToad.PdfPig.Tests.Fonts
|
||||||
{
|
{
|
||||||
using PdfPig.Fonts.Standard14Fonts;
|
using PdfPig.Fonts.Standard14Fonts;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class Standard14Tests
|
public class Standard14Tests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using UglyToad.PdfPig.Fonts.SystemFonts;
|
||||||
using UglyToad.PdfPig.Fonts.SystemFonts;
|
|
||||||
using UglyToad.PdfPig.Tests.Dla;
|
using UglyToad.PdfPig.Tests.Dla;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
namespace UglyToad.PdfPig.Tests.Fonts.SystemFonts
|
namespace UglyToad.PdfPig.Tests.Fonts.SystemFonts
|
||||||
{
|
{
|
||||||
|
@ -5,11 +5,9 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
|
|||||||
using PdfPig.Fonts.TrueType;
|
using PdfPig.Fonts.TrueType;
|
||||||
using PdfPig.Fonts.TrueType.Parser;
|
using PdfPig.Fonts.TrueType.Parser;
|
||||||
using PdfPig.Fonts.TrueType.Tables;
|
using PdfPig.Fonts.TrueType.Tables;
|
||||||
using System;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class TrueTypeFontParserTests
|
public class TrueTypeFontParserTests
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Tables
|
namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Tables
|
||||||
{
|
{
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Fonts.TrueType;
|
using PdfPig.Fonts.TrueType;
|
||||||
using PdfPig.Fonts.TrueType.Parser;
|
using PdfPig.Fonts.TrueType.Parser;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class Os2TableTests
|
public class Os2TableTests
|
||||||
{
|
{
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.TrueType
|
namespace UglyToad.PdfPig.Tests.Fonts.TrueType
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Fonts.TrueType;
|
using PdfPig.Fonts.TrueType;
|
||||||
using PdfPig.Fonts.TrueType.Parser;
|
using PdfPig.Fonts.TrueType.Parser;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class TrueTypeChecksumCalculatorTests
|
public class TrueTypeChecksumCalculatorTests
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Fonts.TrueType;
|
using PdfPig.Fonts.TrueType;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class TrueTypeDataBytesTests
|
public class TrueTypeDataBytesTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.TrueType
|
namespace UglyToad.PdfPig.Tests.Fonts.TrueType
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
internal static class TrueTypeTestHelper
|
internal static class TrueTypeTestHelper
|
||||||
{
|
{
|
||||||
public static byte[] GetFileBytes(string name)
|
public static byte[] GetFileBytes(string name)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Type1
|
namespace UglyToad.PdfPig.Tests.Fonts.Type1
|
||||||
{
|
{
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
using Integration;
|
using Integration;
|
||||||
|
|
||||||
public class Type1CharStringParserTests
|
public class Type1CharStringParserTests
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Fonts.Type1
|
namespace UglyToad.PdfPig.Tests.Fonts.Type1
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Fonts.Type1.Parser;
|
using PdfPig.Fonts.Type1.Parser;
|
||||||
using PdfPig.Geometry;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class Type1FontParserTests
|
public class Type1FontParserTests
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions
|
namespace UglyToad.PdfPig.Tests.Functions
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Functions;
|
using UglyToad.PdfPig.Functions;
|
||||||
using UglyToad.PdfPig.Tests.Tokens;
|
using UglyToad.PdfPig.Tests.Tokens;
|
||||||
using UglyToad.PdfPig.Tokens;
|
using UglyToad.PdfPig.Tokens;
|
||||||
using UglyToad.PdfPig.Util;
|
using UglyToad.PdfPig.Util;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfFunctionType0Tests
|
public class PdfFunctionType0Tests
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions
|
namespace UglyToad.PdfPig.Tests.Functions
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Functions;
|
using UglyToad.PdfPig.Functions;
|
||||||
using UglyToad.PdfPig.Tests.Tokens;
|
using UglyToad.PdfPig.Tests.Tokens;
|
||||||
using UglyToad.PdfPig.Tokens;
|
using UglyToad.PdfPig.Tokens;
|
||||||
using UglyToad.PdfPig.Util;
|
using UglyToad.PdfPig.Util;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfFunctionType2Tests
|
public class PdfFunctionType2Tests
|
||||||
{
|
{
|
||||||
private static PdfFunctionType2 CreateFunction(double[] domain, double[] range, double[] c0, double[] c1, double n)
|
private static PdfFunctionType2 CreateFunction(double[] domain, double[] range, double[] c0, double[] c1, double n)
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions
|
namespace UglyToad.PdfPig.Tests.Functions
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
public class PdfFunctionType3Tests
|
public class PdfFunctionType3Tests
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions
|
namespace UglyToad.PdfPig.Tests.Functions
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UglyToad.PdfPig.Functions;
|
using UglyToad.PdfPig.Functions;
|
||||||
using UglyToad.PdfPig.Tests.Tokens;
|
using UglyToad.PdfPig.Tests.Tokens;
|
||||||
using UglyToad.PdfPig.Tokens;
|
using UglyToad.PdfPig.Tokens;
|
||||||
using UglyToad.PdfPig.Util;
|
using UglyToad.PdfPig.Util;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfFunctionType4Tests
|
public class PdfFunctionType4Tests
|
||||||
{
|
{
|
||||||
private static PdfFunctionType4 CreateFunction(string function, double[] domain, double[] range)
|
private static PdfFunctionType4 CreateFunction(string function, double[] domain, double[] range)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using UglyToad.PdfPig.Functions.Type4;
|
using UglyToad.PdfPig.Functions.Type4;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class OperatorsTests
|
public class OperatorsTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
||||||
{
|
{
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class ParserTests
|
public class ParserTests
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
namespace UglyToad.PdfPig.Tests.Functions.Type4
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using UglyToad.PdfPig.Functions.Type4;
|
using UglyToad.PdfPig.Functions.Type4;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Testing helper class for testing type 4 functions from the PDF specification.
|
/// Testing helper class for testing type 4 functions from the PDF specification.
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Geometry
|
namespace UglyToad.PdfPig.Tests.Geometry
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using UglyToad.PdfPig.Geometry;
|
using UglyToad.PdfPig.Geometry;
|
||||||
using Xunit;
|
|
||||||
using static UglyToad.PdfPig.Core.PdfSubpath;
|
using static UglyToad.PdfPig.Core.PdfSubpath;
|
||||||
|
|
||||||
public class BezierCurveTests
|
public class BezierCurveTests
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using UglyToad.PdfPig.Tests.Integration;
|
using UglyToad.PdfPig.Tests.Integration;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
namespace UglyToad.PdfPig.Tests.Geometry
|
namespace UglyToad.PdfPig.Tests.Geometry
|
||||||
{
|
{
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Geometry;
|
using PdfPig.Geometry;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfLineTests
|
public class PdfLineTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Geometry
|
namespace UglyToad.PdfPig.Tests.Geometry
|
||||||
{
|
{
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using UglyToad.PdfPig.Geometry;
|
using UglyToad.PdfPig.Geometry;
|
||||||
using UglyToad.PdfPig.Tests.Integration;
|
using UglyToad.PdfPig.Tests.Integration;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfPathExtensionsTests
|
public class PdfPathExtensionsTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Geometry
|
namespace UglyToad.PdfPig.Tests.Geometry
|
||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Geometry;
|
using UglyToad.PdfPig.Geometry;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfPointTests
|
public class PdfPointTests
|
||||||
{
|
{
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
using Content;
|
using Content;
|
||||||
using PdfPig.Geometry;
|
using PdfPig.Geometry;
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
public class PdfRectangleTests
|
public class PdfRectangleTests
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Geometry
|
namespace UglyToad.PdfPig.Tests.Geometry
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using UglyToad.PdfPig.Core;
|
using UglyToad.PdfPig.Core;
|
||||||
using UglyToad.PdfPig.Geometry;
|
using UglyToad.PdfPig.Geometry;
|
||||||
using Xunit;
|
|
||||||
using static UglyToad.PdfPig.Core.PdfSubpath;
|
using static UglyToad.PdfPig.Core.PdfSubpath;
|
||||||
|
|
||||||
public class PdfSubpathLineTests
|
public class PdfSubpathLineTests
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Geometry
|
namespace UglyToad.PdfPig.Tests.Geometry
|
||||||
{
|
{
|
||||||
using PdfPig.Geometry;
|
using PdfPig.Geometry;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PdfVectorTests
|
public class PdfVectorTests
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Geometry;
|
using PdfPig.Geometry;
|
||||||
using PdfPig.Graphics;
|
using PdfPig.Graphics;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class ContentStreamProcessorTests
|
public class ContentStreamProcessorTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations.General
|
namespace UglyToad.PdfPig.Tests.Graphics.Operations.General
|
||||||
{
|
{
|
||||||
using PdfPig.Graphics.Operations.General;
|
using PdfPig.Graphics.Operations.General;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class SetMiterLimitTests
|
public class SetMiterLimitTests
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations
|
namespace UglyToad.PdfPig.Tests.Graphics.Operations
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using PdfPig.Graphics.Operations;
|
using PdfPig.Graphics.Operations;
|
||||||
using PdfPig.Graphics.Operations.InlineImages;
|
using PdfPig.Graphics.Operations.InlineImages;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class GraphicsStateOperationTests
|
public class GraphicsStateOperationTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
|
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using PdfPig.Graphics;
|
using PdfPig.Graphics;
|
||||||
using PdfPig.Graphics.Operations.SpecialGraphicsState;
|
using PdfPig.Graphics.Operations.SpecialGraphicsState;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PopTests
|
public class PopTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
|
namespace UglyToad.PdfPig.Tests.Graphics.Operations.SpecialGraphicsState
|
||||||
{
|
{
|
||||||
using PdfPig.Graphics.Operations.SpecialGraphicsState;
|
using PdfPig.Graphics.Operations.SpecialGraphicsState;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PushTests
|
public class PushTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Graphics.Operations.TextState
|
namespace UglyToad.PdfPig.Tests.Graphics.Operations.TextState
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using PdfPig.Graphics.Operations.TextState;
|
using PdfPig.Graphics.Operations.TextState;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class SetFontAndSizeTests
|
public class SetFontAndSizeTests
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Graphics
|
namespace UglyToad.PdfPig.Tests.Graphics
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using Content;
|
using Content;
|
||||||
using Logging;
|
using Logging;
|
||||||
using PdfFonts;
|
using PdfFonts;
|
||||||
using PdfPig.Graphics;
|
using PdfPig.Graphics;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using System;
|
|
||||||
using Tokens;
|
using Tokens;
|
||||||
using UglyToad.PdfPig.Graphics.Core;
|
using UglyToad.PdfPig.Graphics.Core;
|
||||||
using UglyToad.PdfPig.Graphics.Operations.TextPositioning;
|
using UglyToad.PdfPig.Graphics.Operations.TextPositioning;
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.IO
|
namespace UglyToad.PdfPig.Tests.IO
|
||||||
{
|
{
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class InputBytesTests
|
public class InputBytesTests
|
||||||
{
|
{
|
||||||
private const string TestData = @"123456789";
|
private const string TestData = @"123456789";
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Images
|
namespace UglyToad.PdfPig.Tests.Images
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using UglyToad.PdfPig.Images.Png;
|
using UglyToad.PdfPig.Images.Png;
|
||||||
|
@ -1,18 +1,12 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Images
|
namespace UglyToad.PdfPig.Tests.Images
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using Xunit;
|
|
||||||
using JpegHandler = UglyToad.PdfPig.Images.JpegHandler;
|
using JpegHandler = UglyToad.PdfPig.Images.JpegHandler;
|
||||||
|
|
||||||
public class JpegHandlerTests
|
public class JpegHandlerTests
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void CanGetJpegInformation()
|
public void CanGetJpegInformation()
|
||||||
{
|
{
|
||||||
|
|
||||||
var dataJpg = LoadJpg("218995467-ccb746b0-dc28-4616-bcb1-4ad685f81876.jpg");
|
var dataJpg = LoadJpg("218995467-ccb746b0-dc28-4616-bcb1-4ad685f81876.jpg");
|
||||||
|
|
||||||
using (var ms = new MemoryStream(dataJpg))
|
using (var ms = new MemoryStream(dataJpg))
|
||||||
@ -23,9 +17,7 @@
|
|||||||
Assert.Equal(2290, jpegInfo.Height);
|
Assert.Equal(2290, jpegInfo.Height);
|
||||||
Assert.Equal(1648, jpegInfo.Width);
|
Assert.Equal(1648, jpegInfo.Width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private static byte[] LoadJpg(string name)
|
private static byte[] LoadJpg(string name)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Images
|
namespace UglyToad.PdfPig.Tests.Images
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Graphics.Colors;
|
using UglyToad.PdfPig.Graphics.Colors;
|
||||||
using UglyToad.PdfPig.Images.Png;
|
using UglyToad.PdfPig.Images.Png;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class PngFromPdfImageFactoryTests
|
public class PngFromPdfImageFactoryTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration;
|
namespace UglyToad.PdfPig.Tests.Integration;
|
||||||
|
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AccentedCharactersInBookmarksTests
|
public class AccentedCharactersInBookmarksTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
using AcroForms.Fields;
|
using AcroForms.Fields;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AcroFormsBasicFieldsTests
|
public class AcroFormsBasicFieldsTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AdvancedPdfDocumentAccessTests
|
public class AdvancedPdfDocumentAccessTests
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.Export;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.Export;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
||||||
using UglyToad.PdfPig.Util;
|
using UglyToad.PdfPig.Util;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AltoXmlTextExporterTests
|
public class AltoXmlTextExporterTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration;
|
namespace UglyToad.PdfPig.Tests.Integration;
|
||||||
|
|
||||||
using Annotations;
|
using Annotations;
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AnnotationReplyToTests
|
public class AnnotationReplyToTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using Actions;
|
using Actions;
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AnnotationsTest
|
public class AnnotationsTest
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Content;
|
using Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class AssertablePositionData
|
public class AssertablePositionData
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System.Linq;
|
|
||||||
using Annotations;
|
using Annotations;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class CatGeneticsTests
|
public class CatGeneticsTests
|
||||||
{
|
{
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Content;
|
using UglyToad.PdfPig.Content;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
|
||||||
using UglyToad.PdfPig.Graphics.Colors;
|
using UglyToad.PdfPig.Graphics.Colors;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class ColorSpaceTests
|
public class ColorSpaceTests
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Tokens;
|
using PdfPig.Tokens;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class DocumentInformationTests
|
public class DocumentInformationTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class EmbeddedFileAttachmentTests
|
public class EmbeddedFileAttachmentTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
{
|
{
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using PdfPig.Geometry;
|
using PdfPig.Geometry;
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class EncodingsTests
|
public class EncodingsTests
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Exceptions;
|
using Exceptions;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class EncryptedDocumentTests
|
public class EncryptedDocumentTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class FarmerMacTests
|
public class FarmerMacTests
|
||||||
{
|
{
|
||||||
private static string GetFilename()
|
private static string GetFilename()
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UglyToad.PdfPig.Content;
|
using UglyToad.PdfPig.Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class FontDescriptorTests
|
public class FontDescriptorTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using Content;
|
using Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class FontSizeTestFromGoogleChromeTests
|
public class FontSizeTestFromGoogleChromeTests
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using Content;
|
using Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class FontSizeTestFromLibreOfficeTests
|
public class FontSizeTestFromLibreOfficeTests
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class GamebookTests
|
public class GamebookTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.Export;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.Export;
|
||||||
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
using UglyToad.PdfPig.DocumentLayoutAnalysis.PageSegmenter;
|
||||||
using UglyToad.PdfPig.Util;
|
using UglyToad.PdfPig.Util;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class HOcrTextExporterTests
|
public class HOcrTextExporterTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration;
|
namespace UglyToad.PdfPig.Tests.Integration;
|
||||||
|
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class IndexedPageSummaryFileTests
|
public class IndexedPageSummaryFileTests
|
||||||
{
|
{
|
||||||
private static string GetFilename()
|
private static string GetFilename()
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class IntegrationDocumentTests
|
public class IntegrationDocumentTests
|
||||||
{
|
{
|
||||||
private static readonly Lazy<string> DocumentFolder = new Lazy<string>(() => Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Integration", "Documents")));
|
private static readonly Lazy<string> DocumentFolder = new Lazy<string>(() => Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Integration", "Documents")));
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
internal static class IntegrationHelpers
|
internal static class IntegrationHelpers
|
||||||
{
|
{
|
||||||
public static string GetDocumentPath(string name, bool isPdf = true)
|
public static string GetDocumentPath(string name, bool isPdf = true)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class InvalidObjectLoopTests
|
public class InvalidObjectLoopTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class InvalidOperatorTests
|
public class InvalidOperatorTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using Content;
|
using Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class JudgementDocumentTests
|
public class JudgementDocumentTests
|
||||||
{
|
{
|
||||||
|
@ -2,13 +2,8 @@
|
|||||||
|
|
||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using PdfPig.Core;
|
using PdfPig.Core;
|
||||||
using DocumentLayoutAnalysis.Export;
|
using DocumentLayoutAnalysis.Export;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class LaTexTests
|
public class LaTexTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration;
|
namespace UglyToad.PdfPig.Tests.Integration;
|
||||||
|
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class LittlePigInArmenianTests
|
public class LittlePigInArmenianTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
//using System;
|
|
||||||
//using System.Diagnostics;
|
//using System.Diagnostics;
|
||||||
//using System.IO;
|
|
||||||
//using Xunit;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A class for testing files which are not checked in to source control.
|
/// A class for testing files which are not checked in to source control.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using UglyToad.PdfPig.Content;
|
using UglyToad.PdfPig.Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration;
|
namespace UglyToad.PdfPig.Tests.Integration;
|
||||||
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class Math119FakingDataTests
|
public class Math119FakingDataTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
@ -13,6 +11,5 @@ public class Math119FakingDataTests
|
|||||||
|
|
||||||
var words = lastPage.GetWords();
|
var words = lastPage.GetWords();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,11 +1,6 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using Content;
|
using Content;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class MultiplePageMortalityStatisticsTests
|
public class MultiplePageMortalityStatisticsTests
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using UglyToad.PdfPig.Content;
|
using UglyToad.PdfPig.Content;
|
||||||
using UglyToad.PdfPig.Outline;
|
using UglyToad.PdfPig.Outline;
|
||||||
using UglyToad.PdfPig.Outline.Destinations;
|
using UglyToad.PdfPig.Outline.Destinations;
|
||||||
using UglyToad.PdfPig.Writer;
|
using UglyToad.PdfPig.Writer;
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
public class NonAsciiCharactersBookmarksTests
|
public class NonAsciiCharactersBookmarksTests
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user