Skip to content

Commit

Permalink
dotnet: Remove unfinished test method for file upload in VaasTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartdohmann committed Feb 12, 2025
1 parent 731c773 commit 50209f3
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions dotnet/Vaas/test/Vaas.Test/VaasTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -635,30 +635,6 @@ await _vaas
.ThrowAsync<OperationCanceledException>();
}

[Fact]
public async Task ForFileAsync_IfForSha256DoesNotReturnDetectionEtc_UploadsFile()
{
var buffer = new byte[1024];
Random.Shared.NextBytes(buffer);
await File.WriteAllBytesAsync("file.txt", buffer);
var sha256 = new ChecksumSha256(SHA256.HashData(buffer));
// TODO: Mock response

var actual = await _vaas.ForFileAsync("file.txt", CancellationToken.None);

actual
.Should()
.BeEquivalentTo(
new VaasVerdict
{
Sha256 = sha256,
Detection = null,
FileType = "data",
MimeType = "application/octet-stream",
}
);
}

[Fact]
public async Task ForStreamAsync_ReturnsVerdict()
{
Expand Down

0 comments on commit 50209f3

Please sign in to comment.