mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
34 lines
963 B
C#
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);
|
|
}
|
|
} |