/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
            public override IBin Open(BinConfiguration config)
            {
                IBin bin = base.Open(config);

                ((IBlockSize)Environments.My(typeof(IBlockSize))).Register((IListener4)bin);
                return(bin);
            }
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual IBin Open(BinConfiguration config)
 {
     IoAdapterStorage.IoAdapterBin bin = new IoAdapterStorage.IoAdapterBin(_io.Open(config
                                                                                    .Uri(), config.LockFile(), config.InitialLength(), config.ReadOnly()));
     ((IBlockSize)Environments.My(typeof(IBlockSize))).Register(bin);
     return(bin);
 }
Exemple #3
0
 public void Run()
 {
     Assert.AreSame(whatever, ((EnvironmentsTestCase.IWhatever)Environments.My(typeof(
                                                                                   EnvironmentsTestCase.IWhatever))));
     Environments.RunWith(environment2, new _IRunnable_56());
     Assert.AreSame(whatever, ((EnvironmentsTestCase.IWhatever)Environments.My(typeof(
                                                                                   EnvironmentsTestCase.IWhatever))));
 }
Exemple #4
0
        public virtual void Run()
        {
            ITestExecutor executor = ((ITestExecutor)Environments.My(typeof(ITestExecutor)));
            IEnumerator   tests    = ((IEnumerator)_tests.Run());

            try
            {
                SuiteSetUp();
                while (tests.MoveNext())
                {
                    executor.Execute(((ITest)tests.Current));
                }
                SuiteTearDown();
            }
            catch (Exception exc)
            {
                executor.Fail(this, exc);
            }
        }
Exemple #5
0
 public void Run()
 {
     Assert.AreSame(this._enclosing.Container(), ((IObjectContainer)Environments.My(typeof(
                                                                                        IObjectContainer))));
 }
 public void Run()
 {
     Assert.AreSame(this._enclosing._service, ((EnvironmentConfigurationTestCase.IServiceInterface
                                                )Environments.My(typeof(EnvironmentConfigurationTestCase.IServiceInterface))));
 }
 public void Run()
 {
     Assert.AreSame(_enclosing._service, ((IServiceInterface
                                           )Environments.My(typeof(IServiceInterface))));
 }
Exemple #8
0
 public void Run()
 {
     ran.value = true;
     Assert.AreSame(whatever, ((EnvironmentsTestCase.IWhatever)Environments.My(typeof(
                                                                                   EnvironmentsTestCase.IWhatever))));
 }
Exemple #9
0
 /// <exception cref="System.Exception"></exception>
 public void Run()
 {
     Environments.My(typeof(EnvironmentsTestCase.IWhatever));
 }
Exemple #10
0
 public void Run()
 {
     Assert.IsNull(((EnvironmentsTestCase.IWhatever)Environments.My(typeof(EnvironmentsTestCase.IWhatever
                                                                           ))));
 }
Exemple #11
0
 /// <exception cref="System.Exception"></exception>
 public void Run()
 {
     Environments.My(typeof(IWhatever));
 }
Exemple #12
0
 public void Run()
 {
     Assert.IsNull(((IWhatever)Environments.My(typeof(IWhatever
                                                      ))));
 }