我得到了Application.spark和home.spark視圖。Spark Mvc2 RC佈局問題
如果佈局有:
<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' 不執行:期貨組裝Microsoft.Web.Mvc不是ASP.NET MVC 2引用預覽建立
TestCase的 'Spark.Web.Mvc.Tests.SparkViewFactoryTester.HtmlHelperWorksOnItsOwn' 失敗: 預計:「hello 「 但是:< hello> D:\ Resources \ CodeLibraries \ Spark \ subdigital-spark-b1ee7ee \ src \ Spark.Web.Mvc2.Tests \ SparkViewFactoryTester.cs(245,0):at Spark.Web.Mvc.Tests .SparkViewFactoryTester.HtmlHelperWorksOnItsOwn()
測試用例 '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 [] values) 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>");
}