public void StopWithoutTimerShouldReturnFalse() { // Arrange var timeLoop = new TimeLoop(); // Act var result = timeLoop.Stop(Guid.Empty); // Assert Assert.Equal(false, result); }
public void StopWithTimerShouldReturnTrue() { // Arrange var timeLoop = new TimeLoop(); // Act var loopId = timeLoop.StartNew(id => { }, 10); var result = timeLoop.Stop(loopId); // Assert Assert.Equal(true, result); }