public void Import_Always_CorrectlyImportsXml()
        {
            var def = LoadXmls();

            var importer = new MetaXmlImporter(def);

            var assembly = Assembly.GetExecutingAssembly();

            var expectedDocumentStream = assembly.GetManifestResourceStream(TEST_DATASET);
            var x = importer.Import(expectedDocumentStream);


            var refData = TestDataset.MakeDataset();

            AssertValue(refData, x);
        }
        public void Export_Always_CorrectlyExportsXml()
        {
            var exporter  = new MetaXmlExporter();
            var xmlStream = new MemoryStream();

            var rootStructure = TestDataset.MakeDataset();

            exporter.Export(rootStructure, xmlStream);

            var assembly         = Assembly.GetExecutingAssembly();
            var expectedDocument = new XmlDocument();

            using (var expectedDocumentStream = assembly.GetManifestResourceStream(TEST_DATASET))
            {
                expectedDocument.Load(expectedDocumentStream);
            }
            var actualDocument = new XmlDocument();

            xmlStream.Position = 0;
            actualDocument.Load(xmlStream);
            AssertXml(expectedDocument, actualDocument);
        }