public void LoadChildren_should_return_shallow_tree_for_non_GitItem() { var objectId = ObjectId.Random(); var item = Substitute.For <IGitItem>(); item.ObjectId.Returns(objectId); item.Guid.Returns(objectId.ToString()); var items = new[] { Substitute.For <IGitItem>(), Substitute.For <IGitItem>(), Substitute.For <IGitItem>() }; _module.GetTree(objectId, full: false).Returns(items); var children = _provider.LoadChildren(item); children.Should().BeEquivalentTo(items); _module.Received(1).GetTree(objectId, false); }