diff --git a/src/Stryker.Core/Stryker.Core/Initialisation/InputFileResolver.cs b/src/Stryker.Core/Stryker.Core/Initialisation/InputFileResolver.cs index 8eb70f1ba3..8d8e5661c2 100644 --- a/src/Stryker.Core/Stryker.Core/Initialisation/InputFileResolver.cs +++ b/src/Stryker.Core/Stryker.Core/Initialisation/InputFileResolver.cs @@ -48,7 +48,6 @@ public ProjectInfo ResolveInput(StrykerOptions options) var projectInfo = new ProjectInfo(_fileSystem); // Determine test projects var testProjectFiles = new List(); - string projectUnderTest = null; if (options.TestProjects != null && options.TestProjects.Any()) { testProjectFiles = options.TestProjects.Select(FindTestProject).ToList(); @@ -67,14 +66,7 @@ public ProjectInfo ResolveInput(StrykerOptions options) projectInfo.TestProjectAnalyzerResults = testProjectAnalyzerResults; // Determine project under test - if (options.TestProjects != null && options.TestProjects.Any()) - { - projectUnderTest = FindProjectFile(options.BasePath); - } - else - { - projectUnderTest = FindProjectUnderTest(projectInfo.TestProjectAnalyzerResults, options.ProjectUnderTestName); - } + var projectUnderTest = FindProjectUnderTest(projectInfo.TestProjectAnalyzerResults, options.ProjectUnderTestName); _logger.LogInformation("The project {0} will be mutated.", projectUnderTest);