Beispiel #1
0
        public virtual void TestNestedEnvironments()
        {
            EnvironmentsTestCase.IWhatever whatever = new _IWhatever_39();
            IEnvironment environment1 = new _IEnvironment_41(whatever);
            IEnvironment environment2 = new _IEnvironment_47();

            Environments.RunWith(environment1, new _IRunnable_53(whatever, environment2));
        }
Beispiel #2
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))));
 }
Beispiel #3
0
        public virtual void TestRunWith()
        {
            EnvironmentsTestCase.IWhatever whatever = new _IWhatever_22();
            IEnvironment environment = new _IEnvironment_23(whatever);
            ByRef        ran         = ByRef.NewInstance();

            Environments.RunWith(environment, new _IRunnable_29(ran, whatever));
            Assert.IsTrue((((bool)ran.value)));
        }
Beispiel #4
0
        public virtual void Run(ITestListener listener)
        {
            listener.RunStarted();
            ITestExecutor executor = new _ITestExecutor_19(this, listener);

            Environments.RunWith(Environments.NewClosedEnvironment(new object[] { executor })
                                 , new _IRunnable_28(this, listener));
            listener.RunFinished();
        }
 public void Run()
 {
     Environments.RunWith((IEnvironment)value, runnable);
 }
Beispiel #6
0
 public BlockAwareBinTest()
 {
     _mockBlockSize = new _IBlockSize_20(this);
     Environments.RunWith(this, new _IRunnable_37(this));
 }