make test data more tolerant to different environments

This commit is contained in:
Eliot Jones
2017-12-28 17:06:02 +00:00
parent 17d1d77abc
commit 1feaf878cb

View File

@@ -178,9 +178,7 @@ namespace UglyToad.Pdf.Tests.Integration
}
}
}
private static IReadOnlyList<AssertablePositionData> GetPdfBoxPositionData()
{
// X Y Width Letter FontSize Font
@@ -283,7 +281,7 @@ namespace UglyToad.Pdf.Tests.Integration
206.445 173.25 3.054764 t 14 ArialMT
209.499 173.25 3.054764 . 14 ArialMT";
return fromPdfBox.Split("\r\n", StringSplitOptions.RemoveEmptyEntries)
return fromPdfBox.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries)
.Select(AssertablePositionData.Parse)
.ToList();
}
@@ -409,7 +407,7 @@ namespace UglyToad.Pdf.Tests.Integration
209.499 173.25 3.045609 . 0 ArialMT
212.543 173.25 3.045609 0 ArialMT";
return fromOther.Split("\r\n", StringSplitOptions.RemoveEmptyEntries)
return fromOther.Split(new[]{"\r\n", "\r", "\n"}, StringSplitOptions.RemoveEmptyEntries)
.Select(AssertablePositionData.Parse)
.ToList();
}