Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Downloader.Test/Helper/AssertHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Downloader.Test.Helper;
namespace Downloader.Test.Helper;

public static class AssertHelper
{
Expand Down Expand Up @@ -58,8 +58,7 @@ public static void AreEquals(DownloadPackage source, DownloadPackage destination
}
}
}



public static string GetRandomName(int length)
{
StringBuilder sb = new();
Expand Down
14 changes: 5 additions & 9 deletions src/Downloader.Test/IntegrationTests/DownloadIntegrationTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Http.Timeouts;
using Microsoft.AspNetCore.Http.Timeouts;

namespace Downloader.Test.IntegrationTests;

Expand Down Expand Up @@ -494,8 +494,7 @@ public async Task DynamicSpeedLimitTest()
public async Task TestSizeWhenDownloadOnMemoryStream()
{
// arrange



// act
await using Stream stream = await Downloader.DownloadFileTaskAsync(Url);

Expand All @@ -508,8 +507,7 @@ public async Task TestSizeWhenDownloadOnMemoryStream()
public async Task TestTypeWhenDownloadOnMemoryStream()
{
// arrange



// act
await using Stream stream = await Downloader.DownloadFileTaskAsync(Url);

Expand All @@ -536,8 +534,7 @@ public async Task Download256BytesRangeOfFileTest()
Config.RangeLow = 256;
Config.RangeHigh = 511;
long totalSize = Config.RangeHigh - Config.RangeLow + 1;



// act
await using Stream stream = await Downloader.DownloadFileTaskAsync(Url);

Expand All @@ -561,8 +558,7 @@ public async Task DownloadNegativeRangeOfFileTest()
Config.RangeLow = -256;
Config.RangeHigh = 255;
int totalSize = 256;



// act
await using Stream stream = await Downloader.DownloadFileTaskAsync(Url);
byte[] bytes = ((MemoryStream)stream).ToArray();
Expand Down
Loading