public void SolutionLoadedInHost_SolutionServiceReturnsUncompletedTask_ReturnsUncompletedTask() { var solutionService = ISolutionServiceFactory.ImplementSolutionLoadedInHost(() => new Task(() => { })); var service = CreateInstance(solutionService: solutionService); var result = service.SolutionLoadedInHost; Assert.False(result.IsCompleted); }
public void SolutionLoadedInHost_SolutionServiceSolutionReturnsCompletedTask_ReturnsCompletedTask() { var solutionService = ISolutionServiceFactory.ImplementSolutionLoadedInHost(() => Task.CompletedTask); var service = CreateInstance(solutionService: solutionService); var result = service.SolutionLoadedInHost; Assert.True(result.Status == TaskStatus.RanToCompletion); }