/// <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);
            }
예제 #2
0
 /// <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);
 }
예제 #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))));
 }
예제 #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);
            }
        }
예제 #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))));
 }
예제 #8
0
 public void Run()
 {
     ran.value = true;
     Assert.AreSame(whatever, ((EnvironmentsTestCase.IWhatever)Environments.My(typeof(
                                                                                   EnvironmentsTestCase.IWhatever))));
 }
예제 #9
0
 /// <exception cref="System.Exception"></exception>
 public void Run()
 {
     Environments.My(typeof(EnvironmentsTestCase.IWhatever));
 }
예제 #10
0
 public void Run()
 {
     Assert.IsNull(((EnvironmentsTestCase.IWhatever)Environments.My(typeof(EnvironmentsTestCase.IWhatever
                                                                           ))));
 }
예제 #11
0
 /// <exception cref="System.Exception"></exception>
 public void Run()
 {
     Environments.My(typeof(IWhatever));
 }
예제 #12
0
 public void Run()
 {
     Assert.IsNull(((IWhatever)Environments.My(typeof(IWhatever
                                                      ))));
 }