Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/DataBinding
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9288/test/Spring/Spring.Core.Tests/DataBinding
Modified Files:
BaseBindingManagerTests.cs
Log Message:
Extracted IValidationErrors interface and made ValidationErrors non-sealed.
Added ValidationException class.
Modified email, credit card, isbn and url validators to return true (valid) if object to validate is null or empty.
Index: BaseBindingManagerTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/DataBinding/BaseBindingManagerTests.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** BaseBindingManagerTests.cs 31 Jul 2007 00:09:24 -0000 1.3
--- BaseBindingManagerTests.cs 5 Feb 2008 20:40:26 -0000 1.4
***************
*** 174,178 ****
{
BaseBindingManager dbm = new BaseBindingManager();
! ValidationErrors errors = new ValidationErrors();
Hashtable source = new Hashtable();
source["boolValue"] = false;
--- 174,178 ----
{
BaseBindingManager dbm = new BaseBindingManager();
! IValidationErrors errors = new ValidationErrors();
Hashtable source = new Hashtable();
source["boolValue"] = false;
***************
*** 197,201 ****
{
BaseBindingManager dbm = new BaseBindingManager();
! ValidationErrors errors = new ValidationErrors();
Inventor st = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
st.Inventions = new string[] {"Invention One", "Invention Two"};
--- 197,201 ----
{
BaseBindingManager dbm = new BaseBindingManager();
! IValidationErrors errors = new ValidationErrors();
Inventor st = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
st.Inventions = new string[] {"Invention One", "Invention Two"};
|