public static async Task ActionFunctionCalledWhenExecuted() { bool wasCalled = false; var task = new ActionTask(() => wasCalled = true); var context = Substitute.For <ITaskContext>(); await task.ExecuteAsync(context); wasCalled.Should().BeTrue(); }
public static async Task ActionFunctionCalledWhenExecuted() { bool wasCalled = false; var task = new ActionTask(() => wasCalled = true); var context = Substitute.For<ITaskContext>(); await task.ExecuteAsync(context); wasCalled.Should().BeTrue(); }