This commit is contained in:
2023-01-30 14:57:09 +08:00
parent 7d1763246f
commit ab0af253a4
52 changed files with 607 additions and 515 deletions

View File

@ -3,8 +3,14 @@ using System.Security.Cryptography;
namespace Dot.Tests;
/// <summary>
/// TestGet
/// </summary>
public class TestGet
{
/// <summary>
/// DownloadFile
/// </summary>
[Test]
public void DownloadFile()
{
@ -27,9 +33,17 @@ public class TestGet
}
}
/// <summary>
/// Setup
/// </summary>
[SetUp]
public void Setup() { }
/// <summary>
/// GetFileSha1
/// </summary>
/// <param name="file"></param>
/// <returns></returns>
private static string GetFileSha1(string file)
{
using var fs = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

View File

@ -5,9 +5,9 @@
<RootNamespace>Dot.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0-preview-20221003-04"/>
<PackageReference Include="NUnit" Version="3.13.3"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0-preview-20221003-04" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@ -17,5 +17,4 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>