fixed SPRNET-1018

This commit is contained in:
eeichinger
2009-03-04 21:42:08 +00:00
parent b50390f7cb
commit be16181bdb
4 changed files with 47 additions and 6 deletions

View File

@@ -140,6 +140,21 @@ namespace Spring.Web.Support
Result result = new Result("redirect:" + ExpectedTargetPageName);
Assert.AreEqual(ResultMode.Redirect, result.Mode, "Not extracting the correct ResultMode " +
"from the result string passed into the ctor.");
Assert.IsTrue(result.EndResponse);
Assert.IsNull(result.Parameters,
"No parameters were passed but the Parameters property appears to be set to a non-null value anyway.");
Assert.AreEqual(ExpectedTargetPageName, result.TargetPage,
"The TargetPage property is not being correctly extracted " +
"from the result string passed into the ctor.");
}
[Test]
public void WithRedirectNoAbortResultMode()
{
Result result = new Result("redirectnoabort:" + ExpectedTargetPageName);
Assert.AreEqual(ResultMode.RedirectNoAbort, result.Mode, "Not extracting the correct ResultMode " +
"from the result string passed into the ctor.");
Assert.IsFalse(result.EndResponse);
Assert.IsNull(result.Parameters,
"No parameters were passed but the Parameters property appears to be set to a non-null value anyway.");
Assert.AreEqual(ExpectedTargetPageName, result.TargetPage,