public void Serialize_GivenAMedia_SerializeTheMedia()
        {
            var pattern = PrepareXmlForPatternMatching(@"
                <body>
                    <seq>
                        <media src=""Foo"" />
                    </seq>
                </body>
            ");

            var playlist = new WplPlaylist();

            playlist.Add(new WplItem("Foo"));

            Assert.Matches(pattern, serializer.Serialize(playlist));
        }
Пример #2
0
        public void Serialize_GivenAMedia_SerializeTheMedia()
        {
            var pattern = PrepareXmlForPatternMatching(@"
                <body>
                    <seq>
                        <media src=""Foo"" />
                    </seq>
                </body>
            ");

            var playlist = new WplPlaylist();

            playlist.Add(new WplItem("Foo"));
            var serializer = new WplSerializer();
            var actual     = serializer.Serialize(playlist);

            actual.Should().MatchRegex(pattern);
        }