Fixes #3790. Can't build v2_develop RELEASE - "The local source 'C:\Users\Tig\s\gui-cs\Terminal.Gui\local_packages' doesn't exist." (#3794)

This commit is contained in:
BDisp
2024-10-17 19:15:06 +01:00
committed by GitHub
parent d6a652b159
commit 8f1954f16c
9 changed files with 66 additions and 45 deletions

View File

@@ -0,0 +1,33 @@
namespace Terminal.Gui;
public class LocalPackagesTests
{
private readonly string _localPackagesPath;
public LocalPackagesTests ()
{
// Define the local_packages path relative to the solution directory
_localPackagesPath = Path.Combine (Directory.GetCurrentDirectory (), "..", "..", "..", "..", "local_packages");
}
[Fact]
public void LocalPackagesFolderExists ()
{
Assert.True (Directory.Exists (_localPackagesPath),
$"The local_packages folder does not exist: {_localPackagesPath}");
}
[Fact]
public void NupkgFilesExist ()
{
var nupkgFiles = Directory.GetFiles (_localPackagesPath, "*.nupkg");
Assert.NotEmpty (nupkgFiles);
}
[Fact]
public void SnupkgFilesExist ()
{
var snupkgFiles = Directory.GetFiles (_localPackagesPath, "*.snupkg");
Assert.NotEmpty (snupkgFiles);
}
}