我有Application.spark和home.spark视图。
如果布局有:
<span><use content="view" /></span>
家里有:
#RenderPartial("partial")
并且部分有:
<div>test</div>
然后渲染的输出将是:
<div>test</div><span></span>
任何想法有什么不对?
将此spark version与更新的System.Web.Mvc程序集一起使用。
似乎
#Html.RenderPartial(...)
造成问题。
------测试开始:汇编:Spark.Web.Mvc2.Tests.dll ------
TestCase'Spark.Web.Mvc.Tests.SparkViewFactoryTester.FuturesRenderActionCanRunThroughItsProcess' 未执行:ASP.NET MVC 2预览版本未引用的期货汇编Microsoft.Web.Mvc
TestCase'Spark.Web.Mvc.Tests.SparkViewFactoryTester.HtmlHelperWorksOnItsOwn' 失败: 预期:“hello” 但是:&lt; hello&gt; D:\ Resources \ CodeLibraries \ Spark \ subdigital-spark-b1ee7ee \ src \ Spark.Web.Mvc2.Tests \ SparkViewFactoryTester.cs(245,0):at Spark.Web.Mvc.Tests.SparkViewFactoryTester.HtmlHelperWorksOnItsOwn()
TestCase'Spark.Web.Mvc.Tests.SparkViewFactoryTester.RenderPartialOrderCorrect' 失败: 寻找
两个
预期:大于或等于0 但是:-1 D:\ Resources \ CodeLibraries \ Spark \ subdigital-spark-b1ee7ee \ src \ Spark.Web.Mvc2.Tests \ SparkViewFactoryTester.cs(155,0):at Spark.Web.Mvc.Tests.SparkViewFactoryTester.ContainsInOrder(String content, String []值) D:\ Resources \ CodeLibraries \ Spark \ subdigital-spark-b1ee7ee \ src \ Spark.Web.Mvc2.Tests \ SparkViewFactoryTester.cs(347,0):at Spark.Web.Mvc.Tests.SparkViewFactoryTester.RenderPartialOrderCorrect()
68次通过,2次失败,1次跳过,耗时67,59秒(NUnit 2.4)。
此测试失败
[Test]
public void RenderPartialOrderCorrect()
{
FindViewAndRender("renderpartial-ordercorrect", "ajax");
//mocks.VerifyAll();
var content = output.ToString();
ContainsInOrder(content,
"<p>one</p>",
"<p>two</p>",
"<p>three</p>");
}