Skip to content

Commit

Permalink
fixed dummyFileControllerTests warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Dec 19, 2023
1 parent 8e9a45c commit 96a2e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Downloader.Test/HelperTests/DummyFileControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void GetFileWithContentDispositionTest()
Assert.True(dummyData.SequenceEqual(bytes));
Assert.Equal(size.ToString(), headers["Content-Length"]);
Assert.Equal(contentType, headers["Content-Type"]);
Assert.True(headers["Content-Disposition"].Contains($"filename={filename};"));
Assert.Contains($"filename={filename};", headers["Content-Disposition"]);
}

[Fact]
Expand All @@ -150,7 +150,7 @@ public void GetSingleByteFileWithContentDispositionTest()
Assert.True(dummyData.SequenceEqual(bytes));
Assert.Equal(size.ToString(), headers["Content-Length"]);
Assert.Equal(contentType, headers["Content-Type"]);
Assert.True(headers["Content-Disposition"].Contains($"filename={filename};"));
Assert.Contains($"filename={filename};", headers["Content-Disposition"]);
}

[Fact]
Expand Down

0 comments on commit 96a2e21

Please sign in to comment.