Skip to content

Commit

Permalink
[Tests] Enable implict usings
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon authored and BobLd committed Mar 16, 2024
1 parent 4e1c793 commit 1d2777d
Show file tree
Hide file tree
Showing 183 changed files with 27 additions and 495 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.ContentStream
{
using PdfPig.Core;
using Xunit;

public class IndirectReferenceTests
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Core/PdfSubpathTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Core
{
using System.Collections.Generic;
using UglyToad.PdfPig.Core;
using Xunit;

public class PdfSubpathTests
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Core/TransformationMatrixTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Core
{
using System.Collections.Generic;
using PdfPig.Core;
using Xunit;

public class TransformationMatrixTests
{
Expand Down
4 changes: 0 additions & 4 deletions src/UglyToad.PdfPig.Tests/Dla/ArraySegmentExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Dla/DistancesTest.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig.Tests/Dla/DocstrumBoundingBoxesTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Dla/KdTreeTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
5 changes: 1 addition & 4 deletions src/UglyToad.PdfPig.Tests/Dla/MathExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Dla
{
using System.Linq;
using UglyToad.PdfPig.DocumentLayoutAnalysis.WordExtractor;
using Xunit;

public class NearestNeighbourWordExtractorTests
{
Expand Down
5 changes: 1 addition & 4 deletions src/UglyToad.PdfPig.Tests/Dla/RecursiveXYCutTests.cs
Original file line number Diff line number Diff line change
@@ -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[]
Expand Down
5 changes: 1 addition & 4 deletions src/UglyToad.PdfPig.Tests/DoubleComparer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

namespace UglyToad.PdfPig.Tests
namespace UglyToad.PdfPig.Tests
{
internal class DoubleComparer : IEqualityComparer<double>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace UglyToad.PdfPig.Tests.Encryption
namespace UglyToad.PdfPig.Tests.Encryption
{
using PdfPig.Core;
using PdfPig.Encryption;
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Encryption/RC4Tests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Encryption
{
using System.Linq;
using PdfPig.Encryption;
using PdfPig.Tokens;
using Xunit;

public class RC4Tests
{
Expand Down
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig.Tests/Filters/Ascii85FilterTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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>());
Expand Down
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig.Tests/Filters/BitStreamTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Filters
{
using PdfPig.Filters;
using Xunit;

public class BitStreamTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig.Tests/Filters/FlateFilterTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Filters/RunLengthFilterTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace UglyToad.PdfPig.Tests.Filters
{
using System.Collections.Generic;
using PdfPig.Filters;
using PdfPig.Tokens;
using Xunit;

public class RunLengthFilterTests
{
Expand Down
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// ReSharper disable ObjectCreationAsStatement
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
{
using System;
using PdfFonts.Cmap;
using Xunit;

public class CidRangeTests
{
Expand Down
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
{
using System;
using System.IO;
using PdfPig.Fonts;
using Xunit;

public class GlyphListFactoryTests
{
Expand Down
2 changes: 0 additions & 2 deletions src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
{
using System.Collections.Generic;
using PdfPig.Fonts;
using Xunit;

public class GlyphListTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 0 additions & 3 deletions src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using PdfFonts.Cmap;
using PdfFonts.Parser.Parts;
using PdfPig.Tokens;
using Xunit;

public class BaseFontRangeParserTests
{
Expand Down
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig.Tests/Fonts/PointSizeTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts
{
using UglyToad.PdfPig.Tests.Dla;
using Xunit;

public class PointSizeTests
{
Expand Down
1 change: 0 additions & 1 deletion src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts
{
using PdfPig.Fonts.Standard14Fonts;
using Xunit;

public class Standard14Tests
{
Expand Down
4 changes: 1 addition & 3 deletions src/UglyToad.PdfPig.Tests/Fonts/SystemFonts/Linux.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Loading

0 comments on commit 1d2777d

Please sign in to comment.