public async Task ShutdownActionInvokedWithoutCancellationToken()
{
// Arrange
Mock<IAsynchronousDelay> delay = new Mock<IAsynchronousDelay>();
bool shutdownActionInvoked = false;
AsynchronousIntervalTimer timer = new AsynchronousIntervalTimer(delay.Object, TimeSpan.FromMilliseconds(PretendDelayInMilliseconds), false);
// Act
await timer.ExecuteAsync(() => Task.FromResult(false), () => shutdownActionInvoked = true);
// Assert
Assert.IsTrue(shutdownActionInvoked);
}