public ConvertFile ( byte file, string fileName, |
||
file | byte | |
fileName | string | |
options | ||
return | byte[] |
private void TestFile(string testFilePath) { byte[] testFile = File.ReadAllBytes(testFilePath); PdfConverter converter = new PdfConverter(); byte[] pdf = converter.ConvertFile(testFile, Path.GetFileName(testFilePath), new ConversionOptions()); Assert.IsNotNull(pdf); Assert.IsTrue(pdf.Length > 0); }
public void TestNull() { PdfConverter converter = new PdfConverter(); byte[] response = converter.ConvertFile(null, "nullfile.doc", new ConversionOptions()); }