Esempio n. 1
0
        //---------------------------------------------------------------------

        private void CreateSaveLoadAndCompareDataset(string filename,
                                                     params PersistentDataset.PlugInInfo[] plugIns)
        {
            PersistentDataset dataset = new PersistentDataset();

            foreach (PersistentDataset.PlugInInfo plugIn in plugIns)
            {
                dataset.PlugIns.Add(plugIn);
            }

            string path = Data.MakeOutputPath(filename);

            dataset.Save(path);

            PersistentDataset dataset2;

            dataset2 = PersistentDataset.Load(path);

            AssertAreEqual(dataset, dataset2);
        }
Esempio n. 2
0
        //---------------------------------------------------------------------

        private void AssertAreEqual(PersistentDataset expected,
                                    PersistentDataset actual)
        {
            Assert.IsNotNull(actual);
            AssertAreEqual(expected.PlugIns, actual.PlugIns);
        }
        //---------------------------------------------------------------------

        public ExtensionInfo(PersistentDataset.PlugInInfo info)
        {
        	persistentInfo = info;
        }