public void UrlXmlWriterTests_CorrectResult()
        {
            URLContainer[] urls =
            {
                new URLContainer("https",                "github.com",   new string[] { "AnzhelikaKravchuk" },
                                 new Dictionary <string, string>()
                {
                    { "tab",                             "repositories" }
                }),
                new URLContainer("https",                "github.com",   new string[] { "AnzhelikaKravchuk", "2017-2018.MMF.BSU"}),
                new URLContainer("https",                "habrahabr.ru", new string[] { "company", "it-grad", "blog", "341486"})
            };

            URLXmlWriter xmlWriter = new URLXmlWriter();

            xmlWriter.Write(xmlWriterTestPath, urls);
            Assert.AreEqual(File.ReadAllText(correctXmlResult), File.ReadAllText(xmlWriterTestPath));
        }
        public void UrlWriterTests_ResultsAreSame()
        {
            URLContainer[] urls = new[]
            {
                new URLContainer("https", "github.com", new string[] { "AnzhelikaKravchuk" },
                                 new Dictionary <string, string>()
                {
                    { "tab", "repositories" }
                }),
                new URLContainer("https", "habrahabr.ru", new string[] { "company", "it-grad", "blog", "341486" }),
                new URLContainer("https", "canvas.instructure.com",
                                 new string[] { "courses", "1777354", "assignments", "13569501" })
            };
            URLXmlWriter xmlWriter = new URLXmlWriter();
            URLXmlDom    xmlDom    = new URLXmlDom();

            xmlWriter.Write(xmlPath, urls);
            xmlDom.Write(xmlDomPath, urls);
            Assert.AreEqual(File.ReadAllText(xmlPath).ToLowerInvariant(), File.ReadAllText(xmlDomPath).ToLowerInvariant());
        }