Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Expressions
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3851/Expressions
Modified Files:
ExpressionEvaluatorTests.cs
Log Message:
added Test for SPRNET-709
fix SPRNET-710 (moved MessageSourceAccessorTests to use Rhino instead DotNetMock)
set pessimistic default expectations on DotNetMock based MockMessageSource to catch missing expectations
Index: ExpressionEvaluatorTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Expressions/ExpressionEvaluatorTests.cs,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** ExpressionEvaluatorTests.cs 8 Aug 2007 11:19:28 -0000 1.63
--- ExpressionEvaluatorTests.cs 23 Aug 2007 14:31:18 -0000 1.64
***************
*** 2238,2241 ****
--- 2238,2267 ----
}
+ #region TestSPRNET709 Classes
+
+ private class TestSPRNET709Class
+ {
+ public string SelectedValue = "100";
+ }
+
+ #endregion
+
+ [Test]
+ [Ignore("to clarify, recorded as SPRNET-709")]
+ public void TestSPRNET709()
+ {
+ // this line fails with
+ // Spring.Core.InvalidPropertyException :
+ // 'roomtype_dropdownlist' node cannot be resolved for the specified context [System.Int64].
+ IExpression exp = Expression.Parse("long.Parse(SelectedValue)");
+
+ // this line works:
+ // IExpression exp = Expression.Parse("long.Parse(#root.SelectedValue))");
+
+ TestSPRNET709Class root = new TestSPRNET709Class();
+ object result = exp.GetValue(root);
+ Assert.AreSame( (long)100, result );
+ }
+
[Test]
public void TestAccessVisibility()
***************
*** 2271,2274 ****
--- 2297,2302 ----
}
+ #region TestAccessVisibility Classes
+
internal class AccessVisibilityCases
{
***************
*** 2299,2302 ****
--- 2327,2332 ----
}
+ #endregion
+
#region Set operations tests
|