Esempio n. 1
0
        public void ReadFromXmlWithTestEventYReturnsCorrectResult(
            AtomEntry seed,
            XmlAttributedTestEventY tey,
            XmlContentSerializer serializer)
        {
            var expected = seed.WithContent(seed.Content.WithItem(tey));

            using (var sr = new StringReader(expected.ToXmlString(serializer)))
                using (var r = XmlReader.Create(sr))
                {
                    AtomEntry actual = AtomEntry.ReadFrom(r, serializer);
                    Assert.Equal(expected, actual, new AtomEntryComparer());
                }
        }