Files
Terminal.Gui/Tests/UnitTestsParallelizable/LocalPackagesTests.cs
Tig fdeaa8331b Fixes #4298 - Updates test namespaces (#4299)
* Refactored test namespaces.
Moved some tests that were in wrong project.
Code cleanup

* Parrallel -> Parallel
2025-10-20 14:14:38 -06:00

34 lines
963 B
C#

namespace UnitTests_Parallelizable.BuildAndDeployTests;
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);
}
}