public void ReturnCodeIsSetToWaitingAfterConstructor() { const JobbReturnCode expected = JobbReturnCode.Waiting; var deleteJob = new EmptyDirectoryJobb( new EmptyDirectoryJobbParameters { Name = "TestJob", Schedule = new Schedule(), TargetDirectory = _emptyDirectory }); Assert.AreEqual(expected, deleteJob.Parameters.ReturnCode); }
public void ReturnCodeIsSetToWaitingAfterConstructor() { const JobbReturnCode expected = JobbReturnCode.Waiting; var copyFileJobb = new CopyFileJobb(new CopyFileJobbParameters { Name = "a", Schedule = new Schedule(), SourceDirectory = "a", TargetDirectory = "a", FileName = "a" }); Assert.AreEqual(expected, copyFileJobb.Parameters.ReturnCode); }