public virtual void Test() { var configuration = NewConfiguration(); var item = new 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()); }
public virtual void Test() { var configuration = NewConfiguration(); var item = new 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()); }