public void DefaultTestRunnerFactory_ProjectServiceMissing() { var service = new DefaultTestRunnerFactory(); _services.Add(service); service.StartService(); Assert.That(service.Status, Is.EqualTo(ServiceStatus.Error)); }
public void DefaultTestRunnerFactory_ProjectServiceError() { var fake = new FakeProjectService(); fake.FailToStart = true; _services.Add(fake); var service = new DefaultTestRunnerFactory(); _services.Add(service); ((IService)fake).StartService(); service.StartService(); Assert.That(service.Status, Is.EqualTo(ServiceStatus.Error)); }