public virtual void Test()
		{
			IEmbeddedConfiguration configuration = NewConfiguration();
			ConfigurationItemTestCase.ConfigurationItemStub item = new ConfigurationItemTestCase.ConfigurationItemStub
				();
			configuration.Common.Add(item);
			Assert.AreSame(LegacyConfigFor(configuration), item.PreparedConfiguration());
			Assert.IsNull(item.AppliedContainer());
			File4.Delete(TempFile());
			IObjectContainer container = Db4oEmbedded.OpenFile(configuration, TempFile());
			container.Close();
			Assert.AreSame(container, item.AppliedContainer());
		}
Пример #2
0
        public virtual void Test()
        {
            IEmbeddedConfiguration configuration = NewConfiguration();

            ConfigurationItemTestCase.ConfigurationItemStub item = new ConfigurationItemTestCase.ConfigurationItemStub
                                                                       ();
            configuration.Common.Add(item);
            Assert.AreSame(LegacyConfigFor(configuration), item.PreparedConfiguration());
            Assert.IsNull(item.AppliedContainer());
            File4.Delete(TempFile());
            IObjectContainer container = Db4oEmbedded.OpenFile(configuration, TempFile());

            container.Close();
            Assert.AreSame(container, item.AppliedContainer());
        }