mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-06-28 15:30:17 +08:00
remove localtests
This commit is contained in:
parent
4d9f84dd4e
commit
4386fcb907
@ -1,39 +1,39 @@
|
|||||||
namespace UglyToad.PdfPig.Tests.Integration
|
namespace UglyToad.PdfPig.Tests.Integration
|
||||||
{
|
{
|
||||||
using System;
|
//using System;
|
||||||
using System.Diagnostics;
|
//using System.Diagnostics;
|
||||||
using System.IO;
|
//using System.IO;
|
||||||
using Xunit;
|
//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.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class LocalTests
|
public class LocalTests
|
||||||
{
|
{
|
||||||
[Fact]
|
//[Fact]
|
||||||
public void Tests()
|
//public void Tests()
|
||||||
{
|
//{
|
||||||
var files = Directory.GetFiles(@"C:\temp\pdfs", "*.pdf");
|
// var files = Directory.GetFiles(@"C:\temp\pdfs", "*.pdf");
|
||||||
|
|
||||||
foreach (var file in files)
|
// foreach (var file in files)
|
||||||
{
|
// {
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
using (var document = PdfDocument.Open(file, new ParsingOptions { UseLenientParsing = false }))
|
// using (var document = PdfDocument.Open(file, new ParsingOptions { UseLenientParsing = false }))
|
||||||
{
|
// {
|
||||||
for (var i = 1; i <= document.NumberOfPages; i++)
|
// for (var i = 1; i <= document.NumberOfPages; i++)
|
||||||
{
|
// {
|
||||||
var page = document.GetPage(i);
|
// var page = document.GetPage(i);
|
||||||
var text = page.Text;
|
// var text = page.Text;
|
||||||
Trace.WriteLine(text);
|
// Trace.WriteLine(text);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
catch (Exception ex)
|
// catch (Exception ex)
|
||||||
{
|
// {
|
||||||
throw new InvalidOperationException($"Error parsing: {Path.GetFileName(file)}.", ex);
|
// throw new InvalidOperationException($"Error parsing: {Path.GetFileName(file)}.", ex);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user