コード例 #1
0
ファイル: FixtureDecorator.cs プロジェクト: danfma/db4o-net
 internal FixtureDecorator(FixtureVariable provider, object fixture, int fixtureIndex
                           )
 {
     _fixture      = fixture;
     _provider     = provider;
     _fixtureIndex = fixtureIndex;
 }
コード例 #2
0
		internal FixtureDecorator(FixtureVariable provider, object fixture, int fixtureIndex
			)
		{
			_fixture = fixture;
			_provider = provider;
			_fixtureIndex = fixtureIndex;
		}
コード例 #3
0
ファイル: FixtureContext.cs プロジェクト: yuuhhe/db4o
 public _FixtureContext_59(FixtureContext _enclosing, FixtureVariable fixture, object
                           value)
 {
     this._enclosing = _enclosing;
     this.fixture    = fixture;
     this.value      = value;
 }
コード例 #4
0
		public TestWithFixture(ITest test, string fixtureLabel, FixtureVariable fixtureVariable
			, object fixtureValue)
		{
			_test = test;
			_fixtureLabel = fixtureLabel;
			_variable = fixtureVariable;
			_value = fixtureValue;
		}
コード例 #5
0
ファイル: FixtureContext.cs プロジェクト: yuuhhe/db4o
 internal override FixtureContext.Found Get(FixtureVariable key)
 {
     if (key == fixture)
     {
         return(new FixtureContext.Found(value));
     }
     return(this._enclosing.Get(key));
 }
コード例 #6
0
 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
ファイル: FixtureContext.cs プロジェクト: Galigator/db4o
			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
ファイル: FixtureContext.cs プロジェクト: yuuhhe/db4o
 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
ファイル: FixtureContext.cs プロジェクト: pondyond/db4o
            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
ファイル: FixtureContext.cs プロジェクト: masroore/db4o
 internal override Found Get(FixtureVariable fixture)
 {
     var found = _enclosing.Get(fixture);
     if (null != found)
     {
         return found;
     }
     return parent.Get(fixture);
 }
コード例 #14
0
		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;
 }
コード例 #16
0
 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
ファイル: FixtureContext.cs プロジェクト: yuuhhe/db4o
 internal virtual FixtureContext Add(FixtureVariable fixture, object value)
 {
     return(new _FixtureContext_59(this, fixture, value));
 }
コード例 #19
0
ファイル: FixtureContext.cs プロジェクト: erdincay/db4o
			public _FixtureContext_59(FixtureContext _enclosing, FixtureVariable fixture, object
				 value)
			{
				this._enclosing = _enclosing;
				this.fixture = fixture;
				this.value = value;
			}
コード例 #20
0
ファイル: FixtureContext.cs プロジェクト: erdincay/db4o
		internal virtual FixtureContext Add(FixtureVariable fixture, object value)
		{
			return new _FixtureContext_59(this, fixture, value);
		}
コード例 #21
0
ファイル: FixtureContext.cs プロジェクト: masroore/db4o
 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
ファイル: FixtureContext.cs プロジェクト: yuuhhe/db4o
 internal virtual FixtureContext.Found Get(FixtureVariable fixture)
 {
     return(null);
 }
コード例 #25
0
ファイル: FixtureContext.cs プロジェクト: erdincay/db4o
			internal override FixtureContext.Found Get(FixtureVariable key)
			{
				if (key == fixture)
				{
					return new FixtureContext.Found(value);
				}
				return this._enclosing.Get(key);
			}
コード例 #26
0
ファイル: FixtureContext.cs プロジェクト: erdincay/db4o
		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;
			}