public void Constructor_rejects_null_remoteWorkFile()
 {
     UtilAssert.ThrowsExceptionWithMessageContaining <ArgumentNullException>(
         () => new ConversionSourceDocument((RemoteWorkFile)null),
         "remoteWorkFile");
 }
コード例 #2
0
 public void Constructor_rejects_null_remoteWorkFile()
 {
     UtilAssert.ThrowsExceptionWithMessageContaining <ArgumentNullException>(
         () => new ConversionResult(null, 1, new[] { new ConversionSourceDocument("example.pdf") }),
         "remoteWorkFile");
 }
コード例 #3
0
 public void Constructor_rejects_null_sources()
 {
     UtilAssert.ThrowsExceptionWithMessageContaining <ArgumentNullException>(
         () => new ConversionResult(new RemoteWorkFile(null, "fileId", "affinityToken", "pdf"), 1, null),
         "sources");
 }
コード例 #4
0
 public void Constructor_rejects_non_positive_vertical_DPI_values()
 {
     UtilAssert.ThrowsExceptionWithMessageContaining <ArgumentException>(() => new DpiOptions(100, 0), new[] { "value must be greater than zero", "y" });
     UtilAssert.ThrowsExceptionWithMessageContaining <ArgumentException>(() => new DpiOptions(100, -1), new[] { "value must be greater than zero", "y" });
 }