public void PostCollection_DuplicateURLS_ReturnsFalse() { var collectionValidator = new CollectionValidator(); var posts = XMLDeserIntTestHelper.CreateTestCollection(false); var result = collectionValidator.CollectionContainsUniqueURLS(posts, out string errorMSG); Assert.IsFalse(result); Assert.IsNotEmpty(errorMSG); }
public void Deserialize_CompareResultSetToOriginalSet_AreEqual() { XMLDeserIntTestHelper.CreateTestXML(true); var posts = XMLDeserIntTestHelper.CreateTestCollection(); var deser = DeserializerFactory.Create(); var result = deser.Posts; Assert.That(posts.SequenceEqual(result)); }