Skip to content

Commit b01d1f2

Browse files
Update tests/JD.Efcpt.Build.Tests/RunSqlPackageTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2e54f2a commit b01d1f2

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tests/JD.Efcpt.Build.Tests/RunSqlPackageTests.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,9 @@ await Given("a rooted tool path that exists", () =>
535535
.When("tool path resolution logic is evaluated", s =>
536536
{
537537
// Simulate ResolveToolPath logic for explicit path
538-
string resolvedPath;
539-
if (Path.IsPathRooted(s.toolPath))
540-
{
541-
resolvedPath = s.toolPath;
542-
}
543-
else
544-
{
545-
resolvedPath = Path.GetFullPath(Path.Combine(s.state.TempDir, s.toolPath));
546-
}
538+
var resolvedPath = Path.IsPathRooted(s.toolPath)
539+
? s.toolPath
540+
: Path.GetFullPath(Path.Combine(s.state.TempDir, s.toolPath));
547541

548542
var exists = File.Exists(resolvedPath);
549543
return (s.state, resolvedPath, exists);

0 commit comments

Comments
 (0)