public void RunTests(string filePath, int lineNumber) { TestFile testFile = GetTestFileByPath(filePath); TestFile newFile = PowerShellTestDiscoverer.DiscoverTestFile(filePath); if (testFile == null) { testFile = newFile; AddTestFile(testFile); } else { testFile.Merge(newFile); } TestModel model = testFile.FindModelByLineNumber(lineNumber); if (model != null) { DoRunCommandAsync(model); } }