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)); }
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)))); }
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))); }
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); }
public BlockAwareBinTest() { _mockBlockSize = new _IBlockSize_20(this); Environments.RunWith(this, new _IRunnable_37(this)); }