mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Some utility code clean up
This commit is contained in:
@@ -174,25 +174,6 @@ namespace Squirrel.Tests
|
||||
Assert.Equal(result, Utility.FileIsLikelyPEImage(input));
|
||||
}
|
||||
|
||||
[SkippableTheory]
|
||||
[InlineData("C:\\Users\\bob\\temp\\pkgPath\\lib\\net45\\foo.exe", "C:\\Users\\bob\\temp\\pkgPath", true)]
|
||||
[InlineData("C:\\Users\\bob\\temp\\pkgPath\\lib\\net45\\node_modules\\foo.exe", "C:\\Users\\bob\\temp\\pkgPath", false)]
|
||||
[InlineData("C:\\Users\\bob\\temp\\pkgPath\\lib\\net45\\node_modules\\foo\\foo.exe", "C:\\Users\\bob\\temp\\pkgPath", false)]
|
||||
[InlineData("foo.png", "C:\\Users\\bob\\temp\\pkgPath", false)]
|
||||
public void IsFileTopLevelInPackageTest(string input, string packagePath, bool result)
|
||||
{
|
||||
Skip.IfNot(SquirrelRuntimeInfo.IsWindows);
|
||||
Assert.Equal(result, Utility.IsFileTopLevelInPackage(input, packagePath));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WeCanFetchAllProcesses()
|
||||
{
|
||||
var result = PlatformUtil.GetRunningProcesses();
|
||||
Assert.True(result.Count > 1);
|
||||
Assert.True(result.Count != 2048);
|
||||
}
|
||||
|
||||
[Fact(Skip = "Only really need to run this test after changes to FileDownloader")]
|
||||
public async Task DownloaderReportsProgress()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user