public void ConvertTo_IfFilenameHasIllegalChars_ThrowsArgumentException() { CreateTestPages(1); const string filename = "testpage>testpage.pdf"; PrintJob comJob = _queue.NextJob; comJob.ConvertTo(filename); }
[ExpectedException(typeof(ArgumentException))] //Tests for exceptions thrown by the framework can stay this way public void ConvertTo_IfFilenameEmpty_ThrowsArgumentException() { CreateTestPages(1); const string filename = ""; PrintJob comJob = _queue.NextJob; comJob.ConvertTo(filename); }