Fixes unit test

This commit is contained in:
Shannon
2013-09-02 12:57:56 +10:00
parent 2111a5e31e
commit da1c33a034
2 changed files with 5 additions and 0 deletions

3
.gitignore vendored
View File

@@ -81,3 +81,6 @@ build/_BuildOutput/
tools/NDepend/
src/*.vspx
src/*.psess
NDependOut/*
QueryResult.htm
*.ndproj

View File

@@ -66,6 +66,8 @@ namespace Umbraco.Tests.Models
var dataTypeId = Guid.NewGuid();
var dataTypeData = MockRepository.GenerateMock<IData, IDataValueSetter>();
//needs to have a value for SetValue to be called
dataTypeData.Stub(data => data.Value).Return(string.Empty);
dataTypeData
.Stub(data => data.ToXMl(Arg<XmlDocument>.Is.Anything))
.Return(null) // you have to call Return() even though we're about to override it