Example #1
0
        public virtual void TestJointEqualsIdentity()
        {
            JointEqualsIdentityTestCase.TestSubject child = RetrieveChild();
            IQuery      query      = NewQuery(typeof(JointEqualsIdentityTestCase.TestSubject));
            IConstraint constraint = query.Descend("_name").Constrain("B").Equal();

            constraint.And(query.Descend("_child").Constrain(child).Identity());
            Assert.AreEqual(1, query.Execute().Count);
        }
		/// <exception cref="System.Exception"></exception>
		protected override void Store()
		{
			JointEqualsIdentityTestCase.TestSubject subjectA = new JointEqualsIdentityTestCase.TestSubject
				("A", null);
			JointEqualsIdentityTestCase.TestSubject subjectB = new JointEqualsIdentityTestCase.TestSubject
				("B", subjectA);
			JointEqualsIdentityTestCase.TestSubject subjectC = new JointEqualsIdentityTestCase.TestSubject
				("C", subjectA);
			Store(subjectA);
			Store(subjectB);
			Store(subjectC);
		}
Example #3
0
 /// <exception cref="System.Exception"></exception>
 protected override void Store()
 {
     JointEqualsIdentityTestCase.TestSubject subjectA = new JointEqualsIdentityTestCase.TestSubject
                                                            ("A", null);
     JointEqualsIdentityTestCase.TestSubject subjectB = new JointEqualsIdentityTestCase.TestSubject
                                                            ("B", subjectA);
     JointEqualsIdentityTestCase.TestSubject subjectC = new JointEqualsIdentityTestCase.TestSubject
                                                            ("C", subjectA);
     Store(subjectA);
     Store(subjectB);
     Store(subjectC);
 }
			public TestSubject(string name, JointEqualsIdentityTestCase.TestSubject child)
			{
				_name = name;
				_child = child;
			}
Example #5
0
 public TestSubject(string name, JointEqualsIdentityTestCase.TestSubject child)
 {
     _name  = name;
     _child = child;
 }