public void when_the_item_origin_is_not_host_but_no_host_item_exists_output_equals_shared_path_builder() { var paths = new[] { getPath("Packages", "Package1"), getPath("Packages", "Package1", "Shared"), getPath("Packages", "Package1", "Actions"), getPath("Packages", "Package1", "Actions", "Shared"), }; _builder .Stub(x => x.BuildBy(null, null, false)).IgnoreArguments() .Return(paths); _items = new TemplateRegistry(_items.Where(x => x != _item).ToList()); ClassUnderTest.SharedPathsOf(_packageItem, _items) .SequenceEqual(paths).ShouldBeTrue(); }