Пример #1
0
 internal FixtureDecorator(FixtureVariable provider, object fixture, int fixtureIndex
                           )
 {
     _fixture      = fixture;
     _provider     = provider;
     _fixtureIndex = fixtureIndex;
 }
		internal FixtureDecorator(FixtureVariable provider, object fixture, int fixtureIndex
			)
		{
			_fixture = fixture;
			_provider = provider;
			_fixtureIndex = fixtureIndex;
		}
Пример #3
0
 public _FixtureContext_59(FixtureContext _enclosing, FixtureVariable fixture, object
                           value)
 {
     this._enclosing = _enclosing;
     this.fixture    = fixture;
     this.value      = value;
 }
		public TestWithFixture(ITest test, string fixtureLabel, FixtureVariable fixtureVariable
			, object fixtureValue)
		{
			_test = test;
			_fixtureLabel = fixtureLabel;
			_variable = fixtureVariable;
			_value = fixtureValue;
		}
Пример #5
0
 internal override FixtureContext.Found Get(FixtureVariable key)
 {
     if (key == fixture)
     {
         return(new FixtureContext.Found(value));
     }
     return(this._enclosing.Get(key));
 }
 public TestWithFixture(ITest test, string fixtureLabel, FixtureVariable fixtureVariable
                        , object fixtureValue)
 {
     _test         = test;
     _fixtureLabel = fixtureLabel;
     _variable     = fixtureVariable;
     _value        = fixtureValue;
 }
Пример #7
0
					public _IRunnable_26(_IRunnable_21 _enclosing, FixtureVariable f1, FixtureVariable
						 f2, FixtureContextTestCase.ContextRef c2)
					{
						this._enclosing = _enclosing;
						this.f1 = f1;
						this.f2 = f2;
						this.c2 = c2;
					}
Пример #8
0
			internal override FixtureContext.Found Get(FixtureVariable fixture)
			{
				FixtureContext.Found found = this._enclosing.Get(fixture);
				if (null != found)
				{
					return found;
				}
				return parent.Get(fixture);
			}
Пример #9
0
 public _IRunnable_21(_IRunnable_19 _enclosing, FixtureVariable f1, FixtureVariable
     f2, ContextRef c1, ContextRef c2)
 {
     this._enclosing = _enclosing;
     this.f1 = f1;
     this.f2 = f2;
     this.c1 = c1;
     this.c2 = c2;
 }
Пример #10
0
 internal override FixtureContext.Found Get(FixtureVariable fixture)
 {
     FixtureContext.Found found = this._enclosing.Get(fixture);
     if (null != found)
     {
         return(found);
     }
     return(parent.Get(fixture));
 }
Пример #11
0
            internal override Found Get(FixtureVariable fixture)
            {
                var found = _enclosing.Get(fixture);

                if (null != found)
                {
                    return(found);
                }
                return(parent.Get(fixture));
            }
Пример #12
0
		public virtual void Test()
		{
			FixtureVariable f1 = new FixtureVariable();
			FixtureVariable f2 = new FixtureVariable();
			FixtureContextTestCase.ContextRef c1 = new FixtureContextTestCase.ContextRef();
			FixtureContextTestCase.ContextRef c2 = new FixtureContextTestCase.ContextRef();
			new FixtureContext().Run(new _IRunnable_19(this, f1, f2, c1, c2));
			AssertNoValue(f1);
			AssertNoValue(f2);
			c1.value.Run(new _IRunnable_41(this, f1, f2));
			c2.value.Run(new _IRunnable_48(this, f1, f2));
		}
Пример #13
0
 internal override Found Get(FixtureVariable fixture)
 {
     var found = _enclosing.Get(fixture);
     if (null != found)
     {
         return found;
     }
     return parent.Get(fixture);
 }
		public TestWithFixture(ITest test, FixtureVariable fixtureVariable, object fixtureValue
			) : this(test, null, fixtureVariable, fixtureValue)
		{
		}
Пример #15
0
 public SimpleFixtureProvider(FixtureVariable variable, object[] values)
 {
     _variable = variable;
     _values   = values;
 }
 public TestWithFixture(ITest test, FixtureVariable fixtureVariable, object fixtureValue
                        ) : this(test, null, fixtureVariable, fixtureValue)
 {
 }
Пример #17
0
		private void AssertNoValue(FixtureVariable f1)
		{
			Assert.Expect(typeof(InvalidOperationException), new _ICodeBlock_57(f1));
		}
Пример #18
0
 internal virtual FixtureContext Add(FixtureVariable fixture, object value)
 {
     return(new _FixtureContext_59(this, fixture, value));
 }
Пример #19
0
			public _FixtureContext_59(FixtureContext _enclosing, FixtureVariable fixture, object
				 value)
			{
				this._enclosing = _enclosing;
				this.fixture = fixture;
				this.value = value;
			}
Пример #20
0
		internal virtual FixtureContext Add(FixtureVariable fixture, object value)
		{
			return new _FixtureContext_59(this, fixture, value);
		}
Пример #21
0
 internal override Found Get(FixtureVariable key)
 {
     if (key == fixture)
     {
         return new Found(value);
     }
     return _enclosing.Get(key);
 }
Пример #22
0
		private void AssertValue(string expected, FixtureVariable fixture)
		{
			Assert.AreEqual(expected, fixture.Value);
		}
Пример #23
0
			public _ICodeBlock_57(FixtureVariable f1)
			{
				this.f1 = f1;
			}
Пример #24
0
 internal virtual FixtureContext.Found Get(FixtureVariable fixture)
 {
     return(null);
 }
Пример #25
0
			internal override FixtureContext.Found Get(FixtureVariable key)
			{
				if (key == fixture)
				{
					return new FixtureContext.Found(value);
				}
				return this._enclosing.Get(key);
			}
Пример #26
0
		internal virtual FixtureContext.Found Get(FixtureVariable fixture)
		{
			return null;
		}
Пример #27
0
 public SimpleFixtureProvider(FixtureVariable variable, object[] values)
 {
     _variable = variable;
     _values = values;
 }
Пример #28
0
			public _IRunnable_48(FixtureContextTestCase _enclosing, FixtureVariable f1, FixtureVariable
				 f2)
			{
				this._enclosing = _enclosing;
				this.f1 = f1;
				this.f2 = f2;
			}