public void DeserializeObject_ResultModelIsDeserializedAccordingToFormat()
        {
            var expectedModel = MockAssets.SeedDocumentTestDocument();

            var input = MockAssets.SeedXmlDocument(expectedModel);

            var actualModel = _sut.DeserializeObject <Document>(input);

            actualModel.Should().BeEquivalentTo(expectedModel);
        }
        public void SerializeObject_ResultModelIsSerializedAccordingToFormat()
        {
            var model        = MockAssets.SeedDocumentTestDocument();
            var expectedText = MockAssets.SeedXmlDocument(model);

            var actualText = _sut.SerializeObject(model);

            var actualTextNormalized   = Regex.Replace(actualText, @"\s+", string.Empty);
            var expectedTextNormalized = Regex.Replace(expectedText, @"\s+", string.Empty);

            actualTextNormalized.Should().BeEquivalentTo(expectedTextNormalized);
        }