Skip to content

Commit da1c33a

Browse files
committed
Fixes unit test
1 parent 2111a5e commit da1c33a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ build/_BuildOutput/
8181
tools/NDepend/
8282
src/*.vspx
8383
src/*.psess
84+
NDependOut/*
85+
QueryResult.htm
86+
*.ndproj

src/Umbraco.Tests/Models/DataValueSetterTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public void SetValue_Is_Called_When_Executing_ToXml_On_A_Property_With_DataType_
6666
var dataTypeId = Guid.NewGuid();
6767

6868
var dataTypeData = MockRepository.GenerateMock<IData, IDataValueSetter>();
69+
//needs to have a value for SetValue to be called
70+
dataTypeData.Stub(data => data.Value).Return(string.Empty);
6971
dataTypeData
7072
.Stub(data => data.ToXMl(Arg<XmlDocument>.Is.Anything))
7173
.Return(null) // you have to call Return() even though we're about to override it

0 commit comments

Comments
 (0)