public async Task CanWrapATask() { var runOrder = new List <string>(); var task = new Task(() => runOrder.Add($"ran")); var act = new ActionTask(task) { Affinity = TaskAffinity.Exclusive }; await act.Start().Task; CollectionAssert.AreEqual(new string[] { $"ran" }, runOrder); }