A little more MvcHtmlString/IHtmlString cleanup for the UnorderedList<T> HtmlHelper extensions

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-06-18 13:44:02 -07:00
parent 91aa6468cd
commit c546d45f8e
22 changed files with 33 additions and 27 deletions

View File

@@ -142,7 +142,7 @@ namespace Orchard.Tests.Mvc.Html {
var html = new HtmlHelper(viewContext, viewDataContainer.Object);
//act
var result = html.UnorderedList((IEnumerable<string>)null, (a, b) => "", "test");
var result = html.UnorderedList((IEnumerable<string>)null, (a, b) => MvcHtmlString.Create(""), "test");
//assert
Assert.AreEqual(string.Empty, result.ToString());
@@ -156,7 +156,7 @@ namespace Orchard.Tests.Mvc.Html {
var html = new HtmlHelper(viewContext, viewDataContainer.Object);
//act
var result = html.UnorderedList(new string[]{}, (a, b) => "", "test");
var result = html.UnorderedList(new string[] { }, (a, b) => MvcHtmlString.Create(""), "test");
//assert
Assert.AreEqual(string.Empty, result.ToString());