예제 #1
0
        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);
        }
예제 #2
0
        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));
        }