We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c933f74 commit 7bf8421Copy full SHA for 7bf8421
1 file changed
tests/MADE.Web.Tests/Tests/PaginatedResponseTests.cs
@@ -1,5 +1,6 @@
1
namespace MADE.Web.Tests.Tests
2
{
3
+ using System;
4
using System.Collections.Generic;
5
using System.Diagnostics.CodeAnalysis;
6
using MADE.Testing;
@@ -21,7 +22,7 @@ public void ShouldReturnPaginatedResultsWhenCountIsGreaterThanRequest()
21
22
int pageSize = 3;
23
int totalItemCount = 10;
24
- int expectedPageCount = totalItemCount / pageSize;
25
+ int expectedPageCount = (int)Math.Ceiling((double)totalItemCount / pageSize);
26
27
var items = new List<string> { "Hello", "World", "Test" };
28
0 commit comments