mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
24 lines
664 B
C#
24 lines
664 B
C#
using NuGet;
|
|
using Squirrel;
|
|
using Squirrel.Tests.TestHelpers;
|
|
using Xunit;
|
|
using Assert = Xunit.Assert;
|
|
|
|
namespace Squirrel.Tests
|
|
{
|
|
public class PackageExtensionsTests
|
|
{
|
|
[Theory]
|
|
[InlineData("Squirrel.Core.1.0.0.0-full.nupkg", FrameworkVersion.Net40)]
|
|
[InlineData("Caliburn.Micro.1.5.2.nupkg", FrameworkVersion.Net45)]
|
|
public void DetectFrameworkVersion(string packageName, FrameworkVersion expected)
|
|
{
|
|
var path = IntegrationTestHelper.GetPath("fixtures", packageName);
|
|
|
|
var zip = new ZipPackage(path);
|
|
|
|
Assert.Equal(expected, zip.DetectFrameworkVersion());
|
|
}
|
|
}
|
|
}
|