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)); }
public void DeserializeXML_DuplicateURLS_Throws() { XMLDeserIntTestHelper.CreateTestXML(false); Assert.Throws <FileLoadException>(() => DeserializerFactory.Create(collectionContainsUniqueURLS: false)); }
public void DeserializeXML_FileNotExists_Throws() { Assert.Throws <FileNotFoundException>(() => DeserializerFactory.Create(aFileExists: false)); }
public void DeserializeXML_FilesNotValid_Throws() { Assert.Throws <XmlException>(() => DeserializerFactory.Create(filesValid: false)); }
public void DeserializeXML_DirectoryNotExists_Throws() { Assert.Throws <DirectoryNotFoundException>(() => DeserializerFactory.Create(directoryExists: false)); }