Skip to content

Commit

Permalink
Simple test to enable dotnet test
Browse files Browse the repository at this point in the history
  • Loading branch information
René Mihula committed Mar 13, 2024
1 parent 6ad5603 commit abbf2f3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 18 deletions.
4 changes: 4 additions & 0 deletions src/ProDotNetZipNetStandard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<RootNamespace>Ionic.Zip</RootNamespace>
<OutputType>Library</OutputType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DebugType>embedded</DebugType>

<Authors>Original authors of DotNetZip and Rene Mihula (ProDotNetZip)</Authors>
<Description>ProDotNetZip is rip off the original DotNetZip code with limitation to NET standard subset and with fixed vulnerabilities.</Description>
Expand All @@ -17,9 +18,12 @@
<PackageTags>Zip, Compress, Zlib, Bzip2, archive, net standard, net6, net8</PackageTags>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>

<RepositoryUrl>https://github.com/mihula/ProDotNetZip.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
</PropertyGroup>

Expand Down
14 changes: 14 additions & 0 deletions test/BasicTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Xunit;

namespace Ionic.Zip.Tests
{
public class BasicTest
{
[Fact]
public void TestCreate()
{
var result = new ZipFile();
Assert.NotNull(result);
}
}
}
39 changes: 21 additions & 18 deletions test/ProDotNetZipNetStandardTest.csproj
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.2.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.2.2" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="JunitXml.TestLogger" Version="3.1.12" />
</ItemGroup>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\src\ProDotNetZipNetStandard.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\ProDotNetZipNetStandard.csproj" />
</ItemGroup>

</Project>

0 comments on commit abbf2f3

Please sign in to comment.