Ejemplo n.º 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;
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
					}
Ejemplo n.º 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);
			}
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 11
0
            internal override Found Get(FixtureVariable fixture)
            {
                var found = _enclosing.Get(fixture);

                if (null != found)
                {
                    return(found);
                }
                return(parent.Get(fixture));
            }
Ejemplo n.º 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));
		}
Ejemplo n.º 13
0
 internal override Found Get(FixtureVariable fixture)
 {
     var found = _enclosing.Get(fixture);
     if (null != found)
     {
         return found;
     }
     return parent.Get(fixture);
 }
Ejemplo n.º 14
0
		public TestWithFixture(ITest test, FixtureVariable fixtureVariable, object fixtureValue
			) : this(test, null, fixtureVariable, fixtureValue)
		{
		}
Ejemplo n.º 15
0
 public SimpleFixtureProvider(FixtureVariable variable, object[] values)
 {
     _variable = variable;
     _values   = values;
 }
Ejemplo n.º 16
0
 public TestWithFixture(ITest test, FixtureVariable fixtureVariable, object fixtureValue
                        ) : this(test, null, fixtureVariable, fixtureValue)
 {
 }
Ejemplo n.º 17
0
		private void AssertNoValue(FixtureVariable f1)
		{
			Assert.Expect(typeof(InvalidOperationException), new _ICodeBlock_57(f1));
		}
Ejemplo n.º 18
0
 internal virtual FixtureContext Add(FixtureVariable fixture, object value)
 {
     return(new _FixtureContext_59(this, fixture, value));
 }
Ejemplo n.º 19
0
			public _FixtureContext_59(FixtureContext _enclosing, FixtureVariable fixture, object
				 value)
			{
				this._enclosing = _enclosing;
				this.fixture = fixture;
				this.value = value;
			}
Ejemplo n.º 20
0
		internal virtual FixtureContext Add(FixtureVariable fixture, object value)
		{
			return new _FixtureContext_59(this, fixture, value);
		}
Ejemplo n.º 21
0
 internal override Found Get(FixtureVariable key)
 {
     if (key == fixture)
     {
         return new Found(value);
     }
     return _enclosing.Get(key);
 }
Ejemplo n.º 22
0
		private void AssertValue(string expected, FixtureVariable fixture)
		{
			Assert.AreEqual(expected, fixture.Value);
		}
Ejemplo n.º 23
0
			public _ICodeBlock_57(FixtureVariable f1)
			{
				this.f1 = f1;
			}
Ejemplo n.º 24
0
 internal virtual FixtureContext.Found Get(FixtureVariable fixture)
 {
     return(null);
 }
Ejemplo n.º 25
0
			internal override FixtureContext.Found Get(FixtureVariable key)
			{
				if (key == fixture)
				{
					return new FixtureContext.Found(value);
				}
				return this._enclosing.Get(key);
			}
Ejemplo n.º 26
0
		internal virtual FixtureContext.Found Get(FixtureVariable fixture)
		{
			return null;
		}
Ejemplo n.º 27
0
 public SimpleFixtureProvider(FixtureVariable variable, object[] values)
 {
     _variable = variable;
     _values = values;
 }
Ejemplo n.º 28
0
			public _IRunnable_48(FixtureContextTestCase _enclosing, FixtureVariable f1, FixtureVariable
				 f2)
			{
				this._enclosing = _enclosing;
				this.f1 = f1;
				this.f2 = f2;
			}