Beispiel #1
0
        public void Evaluate(ICandidate candidate)
        {
            // use starting _ for PascalCase conversion purposes
            var _predicate = (Predicate <T>)GetContent();

            candidate.Include(_predicate((T)candidate.GetObject()));
        }
Beispiel #2
0
            public void Evaluate(ICandidate candidate)
            {
                var sti = (STIntegerWUTestCase
                           )candidate.GetObject();

                candidate.Include((((int)sti.i_int) + 2) > 100);
            }
Beispiel #3
0
            public void Evaluate(ICandidate candidate)
            {
                var sts = (STShortWUTestCase
                           )candidate.GetObject();

                candidate.Include((((short)sts.i_short) + 2) > 100);
            }
Beispiel #4
0
            public void Evaluate(ICandidate candidate)
            {
                var sts = (STCharWUTestCase
                           )candidate.GetObject();

                candidate.Include((((char)sts.i_char) + 2) > 100);
            }
Beispiel #5
0
            public void Evaluate(ICandidate candidate)
            {
                var sts = (STByteWUTestCase
                           )candidate.GetObject();

                candidate.Include((((byte)sts.i_byte) + 2) > 100);
            }
 public virtual void Evaluate(ICandidate candidate)
 {
     var pe = (ParameterizedEvaluationTestCase) candidate.GetObject
         ();
     var inc = pe.str.IndexOf(str) != -1;
     candidate.Include(inc);
 }
Beispiel #7
0
            public void Evaluate(ICandidate candidate)
            {
                var sts = (STStringTestCase
                           )candidate.GetObject();

                candidate.Include(sts.str.ToLower().IndexOf("od") >= 0);
            }
            public virtual void Evaluate(ICandidate candidate)
            {
                ParameterizedEvaluationTestCase pe = (ParameterizedEvaluationTestCase)candidate.GetObject
                                                         ();
                bool inc = pe.str.IndexOf(str) != -1;

                candidate.Include(inc);
            }
Beispiel #9
0
 public void Evaluate(ICandidate candidate)
 {
     if (candidate.GetObject() is string)
     {
         var value = (string)candidate.GetObject();
         if (value.Equals("abc"))
         {
             candidate.Include(true);
         }
     }
 }
Beispiel #10
0
 public void Evaluate(ICandidate candidate)
 {
     var item = (Item) candidate.GetObject();
     candidate.Include(item._plainObject == plainObject);
 }
            public virtual void Evaluate(ICandidate candidate)
            {
                CaseInsensitiveTestCase ci = (CaseInsensitiveTestCase)candidate.GetObject();

                candidate.Include(ci.name.ToLower().Equals(name.ToLower()));
            }
Beispiel #12
0
 public void Evaluate(ICandidate candidate)
 {
     candidate.Include(candidate.GetObject().ToString().ToLower().StartsWith("hell"));
 }
Beispiel #13
0
        public void Evaluate(ICandidate candidate)
        {
            string stringValue = (string)candidate.GetObject();

            candidate.Include(pattern.IsMatch(stringValue));
        }
Beispiel #14
0
			public void Evaluate(ICandidate candidate)
			{
				PlainObjectTestCase.Item item = (PlainObjectTestCase.Item)candidate.GetObject();
				candidate.Include(item._plainObject == plainObject);
			}
Beispiel #15
0
			public void Evaluate(ICandidate candidate)
			{
				ISTInterface sti = (ISTInterface)candidate.GetObject();
				candidate.Include(sti.ReturnSomething().Equals("aaa"));
			}
Beispiel #16
0
            public void Evaluate(ICandidate candidate)
            {
                var item = (Item)candidate.GetObject();

                candidate.Include(item._plainObject == plainObject);
            }
Beispiel #17
0
 public static void Evaluate(ICandidate candidate)
 {
     var obj = ((CsEvaluationDelegate) candidate.GetObject());
     candidate.Include(obj.name.Equals("three"));
 }
 public void Evaluate(ICandidate candidate)
 {
     candidate.Include(candidate.GetObject().ToString().ToLower().StartsWith("hell"));
 }
Beispiel #19
0
			public void Evaluate(ICandidate candidate)
			{
				Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STIntegerWUTestCase sti = (Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STIntegerWUTestCase
					)candidate.GetObject();
				candidate.Include((((int)sti.i_int) + 2) > 100);
			}
Beispiel #20
0
 public void Evaluate(ICandidate candidate)
 {
     PlainObjectTestCase.Item item = (PlainObjectTestCase.Item)candidate.GetObject();
     candidate.Include(item._plainObject == plainObject);
 }
Beispiel #21
0
 public void Evaluate(ICandidate candidate)
 {
     CsEvaluationDelegate obj = ((CsEvaluationDelegate)candidate.GetObject());
     candidate.Include(obj.name.Equals(_name));
 }
Beispiel #22
0
 public void Evaluate(ICandidate candidate)
 {
     Db4objects.Db4o.Tests.Common.Soda.Classes.Simple.STStringTestCase sts = (Db4objects.Db4o.Tests.Common.Soda.Classes.Simple.STStringTestCase
                                                                              )candidate.GetObject();
     candidate.Include(sts.str.ToLower().IndexOf("od") >= 0);
 }
 public virtual void Evaluate(ICandidate candidate)
 {
     candidate.Include(true);
 }
Beispiel #24
0
        public static void Evaluate(ICandidate candidate)
        {
            var obj = ((CsEvaluationDelegate)candidate.GetObject());

            candidate.Include(obj.name.Equals("three"));
        }
Beispiel #25
0
        public void Evaluate(ICandidate candidate)
        {
            Car car = (Car)candidate.GetObject();

            candidate.Include(car.History.Count % 2 == 0);
        }
Beispiel #26
0
 public void Evaluate(ICandidate candidate)
 {
     var sts = (STStringTestCase
         ) candidate.GetObject();
     candidate.Include(sts.str.ToLower().IndexOf("od") >= 0);
 }
Beispiel #27
0
        public void Evaluate(ICandidate candidate)
        {
            Pilot pilot = (Pilot)candidate.GetObject();

            candidate.Include(pilot.Age % 2 != 0);
        }
 public virtual void Evaluate(ICandidate candidate)
 {
     var ci = (CaseInsensitiveTestCase) candidate.GetObject();
     candidate.Include(ci.name.ToLower().Equals(name.ToLower()));
 }
Beispiel #29
0
 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);
 }
Beispiel #30
0
			public void Evaluate(ICandidate candidate)
			{
				Db4objects.Db4o.Tests.Common.Soda.Classes.Simple.STStringTestCase sts = (Db4objects.Db4o.Tests.Common.Soda.Classes.Simple.STStringTestCase
					)candidate.GetObject();
				candidate.Include(sts.str.ToLower().IndexOf("od") >= 0);
			}
Beispiel #31
0
 public void Evaluate(ICandidate candidate)
 {
     var sts = (STShortWUTestCase
         ) candidate.GetObject();
     candidate.Include((((short) sts.i_short) + 2) > 100);
 }
Beispiel #32
0
 public virtual void Evaluate(ICandidate candidate)
 {
     candidate.Include(_predicate.AppliesTo(candidate.GetObject()));
 }
			public virtual void Evaluate(ICandidate candidate)
			{
				candidate.Include(true);
			}
Beispiel #34
0
 public void Evaluate(ICandidate candidate)
 {
     var sts = (STByteWUTestCase
         ) candidate.GetObject();
     candidate.Include((((byte) sts.i_byte) + 2) > 100);
 }
 public void Evaluate(ICandidate candidate)
 {
     string stringValue = (string)candidate.GetObject();
     candidate.Include(pattern.IsMatch(stringValue));
 }
Beispiel #36
0
		public void Evaluate(ICandidate candidate)
		{
			Car car=(Car)candidate.GetObject();
			candidate.Include(car.History.Count % 2 == 0);
		}
Beispiel #37
0
        public void Evaluate(ICandidate candidate)
        {
            Person realCandidate = (Person)candidate.GetObject();

            candidate.Include(realCandidate.Name == _name);
        }
 public void Evaluate(ICandidate candidate)
 {
     Pilot pilot = (Pilot)candidate.GetObject();
     candidate.Include(pilot.Age % 2 != 0);
 }
Beispiel #39
0
 public virtual void Evaluate(ICandidate candidate)
 {
     candidate.Include(_predicate.AppliesTo(candidate.GetObject()));
 }
Beispiel #40
0
 public void Evaluate(ICandidate candidate)
 {
     Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STIntegerWUTestCase sti = (Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STIntegerWUTestCase
                                                                                  )candidate.GetObject();
     candidate.Include((((int)sti.i_int) + 2) > 100);
 }
Beispiel #41
0
 public void Evaluate(ICandidate candidate)
 {
     var sti = (STIntegerWUTestCase
         ) candidate.GetObject();
     candidate.Include((((int) sti.i_int) + 2) > 100);
 }
            public void Evaluate(ICandidate candidate)
            {
                CsEvaluationDelegate obj = ((CsEvaluationDelegate)candidate.GetObject());

                candidate.Include(obj.name.Equals(_name));
            }
Beispiel #43
0
			public void Evaluate(ICandidate candidate)
			{
				Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STShortWUTestCase sts = (Db4objects.Db4o.Tests.Common.Soda.Wrapper.Untyped.STShortWUTestCase
					)candidate.GetObject();
				candidate.Include((((short)sts.i_short) + 2) > 100);
			}
Beispiel #44
0
		public void Evaluate(ICandidate candidate)
		{
			Person realCandidate = (Person)candidate.GetObject();
			candidate.Include(realCandidate.Name == _name);
		}
Beispiel #45
0
            public void Evaluate(ICandidate candidate)
            {
                ISTInterface sti = (ISTInterface)candidate.GetObject();

                candidate.Include(sti.ReturnSomething().Equals("aaa"));
            }
Beispiel #46
0
 public void Evaluate(ICandidate candidate)
 {
     var sts = (STCharWUTestCase
         ) candidate.GetObject();
     candidate.Include((((char) sts.i_char) + 2) > 100);
 }