示例#1
0
        public void SaveAndLoadDatabase()
        {
            AbstractParser xmlParser    = CreateXMLParser();
            Database       testDatabase = ObjectConstructor.CreateDatabaseFull("test1");

            xmlParser.SaveDatabase(testDatabase);
            Database loadedDatabase = xmlParser.LoadDatabase(testDatabase.databaseName);

            Assert.IsTrue(Database.GetDatabaseComparer().Equals(testDatabase, loadedDatabase));
        }