mirror of
https://github.com/nsnail/dot.git
synced 2025-06-19 22:08:16 +08:00
<chore>
This commit is contained in:
@ -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);
|
||||
|
@ -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>
|
Reference in New Issue
Block a user