# HG changeset patch # User stevenhollidge # Date 1336232340 -3600 # Node ID 1adc1ae981ea43c2f8fc2b5a111d66b3f6487a7b # Parent 188f8b366e8702185902f72519b4e2b162b8d342 Tests added to SilverlightValidation.Tests diff -r 188f8b366e87 -r 1adc1ae981ea SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs --- a/SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs Sat May 05 13:29:56 2012 +0100 +++ b/SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs Sat May 05 16:39:00 2012 +0100 @@ -27,6 +27,9 @@ public UserViewModel(UserModel model, UserModelValidator validator) { + if (model == null) throw new ArgumentNullException("model"); + if (validator == null) throw new ArgumentNullException("validator"); + _validator = validator; _data = model; _backup = model.Clone(); diff -r 188f8b366e87 -r 1adc1ae981ea SilverlightValidation/SilverlightValidation.Tests/SilverlightValidation.Tests.csproj --- a/SilverlightValidation/SilverlightValidation.Tests/SilverlightValidation.Tests.csproj Sat May 05 13:29:56 2012 +0100 +++ b/SilverlightValidation/SilverlightValidation.Tests/SilverlightValidation.Tests.csproj Sat May 05 16:39:00 2012 +0100 @@ -31,11 +31,17 @@ 4 + + ..\Libs\FluentValidation.dll + - ..\packages\NUnit.2.6.0.12054\lib\nunit.framework.dll + ..\Libs\nunit.framework.dll + + ..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.Windows.dll + @@ -43,12 +49,23 @@ + + + + + + + + - + + {13B5F568-F402-4A2A-9A23-0FDF0B5564E3} + SilverlightValidation.PL +