public virtual void TestNotIdentity() { IQuery q = NewQuery(); q.Constrain(new Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase ((byte)1)); IObjectSet set = q.Execute(); Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase identityConstraint = (Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase)set.Next( ); identityConstraint.i_byte = (byte)102; q = NewQuery(); q.Constrain(identityConstraint).Identity().Not(); identityConstraint.i_byte = (byte)1; Expect(q, new int[] { 0, 2, 3 }); }
public virtual void TestIdentity() { IQuery q = NewQuery(); q.Constrain(new Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase ((byte)1)); IObjectSet set = q.Execute(); Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase identityConstraint = (Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase)set.Next( ); identityConstraint.i_byte = (byte)102; q = NewQuery(); q.Constrain(identityConstraint).Identity(); identityConstraint.i_byte = (byte)1; SodaTestUtil.ExpectOne(q, _array[1]); }
public void Evaluate(ICandidate candidate) { Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase sts = (Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STByteWUTestCase )candidate.GetObject(); candidate.Include((((byte)sts.i_byte) + 2) > 100); }