private static void ConfigureTask(CopyTaskBuilder sut) { sut.With("Id", TaskId) .With("Name", TaskName) .With("CopyFromPath", TheSourcePath) .With("CopyToPath", TheDestPath) .With("CopySubfolders", Recursive) .With("CopyFileByPattern", FilePattern) .With("AlwaysOverwrite", AlwaysOverwrite); }
public void WhenCallingWith_WithInvalidConfigOption__ShouldThrowInvalidOperationException() { CopyTaskBuilder sut = new CopyTaskBuilder(new CopyPolicyDummy(), new MockFileSystem()); sut.With("InvalidOption", string.Empty); }