public void getAllUniqueNodeIdsFromObjectType_ReturnsIds() { EnsureTestDocumentTypes(); var ids = CMSNode.getAllUniqueNodeIdsFromObjectType(new Guid(DocumentTypeObjectTypeId)); var expectedIds = contentTypes.Select(c => c.Id).OrderBy(id => id); var actualIds = ids.OrderBy(id => id); Assert.IsTrue(expectedIds.SequenceEqual(actualIds)); }