mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Make Excerpt test more accurate
This commit is contained in:
@@ -217,7 +217,7 @@ namespace Orchard.Tests.Mvc.Html {
|
||||
var html = new HtmlHelper(viewContext, viewDataContainer.Object);
|
||||
|
||||
//act
|
||||
var result = html.Excerpt("<p>foo & bar</p>", 5);
|
||||
var result = html.Excerpt("<p>foo & bar</p>", 7);
|
||||
|
||||
//assert
|
||||
Assert.AreEqual("foo & \u2026", result.ToString());
|
||||
|
Reference in New Issue
Block a user