Skip to content

Commit

Permalink
Wrong tests expectations fix
Browse files Browse the repository at this point in the history
1) 
Test: Can_Build_Correct_Model_For_33_Items_With_2_Item_Per_Page_And_Max_5_Pages
Question: why do you expected to have two pages "16" and "17" after "..." ?

2) 
Test: Can_Build_Correct_Model_With_Thirteen_Pages_Using_ItemCount_As_PageCount_And_Max_5_Pages 
Question: why do you expected to have two pages "16" and "17" after "..." ?
  • Loading branch information
subeax committed May 13, 2016
1 parent e8adaf9 commit 4865c84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MvcPaging.Tests/PagerTests.cs
Expand Up @@ -195,7 +195,6 @@ public void Can_Build_Correct_Model_For_33_Items_With_2_Item_Per_Page_And_Max_5_
new PaginationLink { Active = true, DisplayText = "4", PageIndex = 4, Url = "/test/4" },
new PaginationLink { Active = true, DisplayText = "5", PageIndex = 5, Url = "/test/5" },
new PaginationLink { Active = false, DisplayText = "...", Url = null, IsSpacer = true },
new PaginationLink { Active = true, DisplayText = "16", PageIndex = 16, Url = "/test/16" },
new PaginationLink { Active = true, DisplayText = "17", PageIndex = 17, Url = "/test/17" },
new PaginationLink { Active = true, DisplayText = "»", PageIndex = 2, Url = "/test/2" }
};
Expand Down Expand Up @@ -373,7 +372,6 @@ public void Can_Build_Correct_Model_With_Thirteen_Pages_Using_ItemCount_As_PageC
new PaginationLink { Active = true, DisplayText = "4", PageIndex = 4, Url = "/test/4" },
new PaginationLink { Active = true, DisplayText = "5", PageIndex = 5, Url = "/test/5" },
new PaginationLink { Active = false, DisplayText = "...", Url = null, IsSpacer = true },
new PaginationLink { Active = true, DisplayText = "12", PageIndex = 12, Url = "/test/12" },
new PaginationLink { Active = true, DisplayText = "13", PageIndex = 13, Url = "/test/13" },
new PaginationLink { Active = true, DisplayText = "»", PageIndex = 2, Url = "/test/2" }
};
Expand Down Expand Up @@ -405,4 +403,4 @@ private HtmlHelper<TModel> GetHtmlHelperWithModel<TModel>(TModel model)
return htmlHelper;
}
}
}
}

0 comments on commit 4865c84

Please sign in to comment.