More unit tests.

Fixes: 27242, 27243, 27244

[TFS Changeset #66361]
This commit is contained in:
Shandem
2010-06-01 15:46:25 +00:00
parent 56f6934075
commit 7bf1bc2f82
15 changed files with 1637 additions and 681 deletions

View File

@@ -168,11 +168,11 @@ namespace umbraco.Test
target.Copy(parentId, m_User, RelateToOrignal);
Assert.AreEqual(childrenIds.Count() + 1, GetChildNodesOfParent(target).Count());
Document parent = new Document(parentId);
var parentChildNodes = GetChildNodesOfParent(target);
Assert.AreEqual(childrenIds.Count() + 1, parentChildNodes.Count());
//get the children difference which should be the new node
var diff = parent.Children.ToList().Select(x => x.Id).Except(childrenIds);
var diff = parentChildNodes.Select(x => x.Id).Except(childrenIds);
Assert.AreEqual(1, diff.Count());