コード例 #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);
        }
コード例 #2
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);
		}
コード例 #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);
 }
コード例 #4
0
			public TestSubject(string name, JointEqualsIdentityTestCase.TestSubject child)
			{
				_name = name;
				_child = child;
			}
コード例 #5
0
 public TestSubject(string name, JointEqualsIdentityTestCase.TestSubject child)
 {
     _name  = name;
     _child = child;
 }