public TestTasks Add(Action task) { Contract.Requires(task != null, "The task cannot be null."); Tasks.Add(Task.Factory.StartNew(task)); return this; }