예제 #1
0
        public void Test_IsOneToOne_WhenIsMultipleRelationship_ShouldReturnFalse()
        {
            //---------------Set up test pack-------------------
            IRelationshipDef relationshipDef = new FakeMultipleRelationshipDef();

            //---------------Assert Precondition----------------
            Assert.IsInstanceOf(typeof(MultipleRelationshipDef), relationshipDef);
            //---------------Execute Test ----------------------
            bool isOneToOne = relationshipDef.IsOneToOne;

            //---------------Test Result -----------------------
            Assert.IsFalse(isOneToOne);
        }
예제 #2
0
 public void Test_IsOneToOne_WhenIsMultipleRelationship_ShouldReturnFalse()
 {
     //---------------Set up test pack-------------------
     IRelationshipDef relationshipDef = new FakeMultipleRelationshipDef();
     //---------------Assert Precondition----------------
     Assert.IsInstanceOf(typeof(MultipleRelationshipDef), relationshipDef);
     //---------------Execute Test ----------------------
     bool isOneToOne = relationshipDef.IsOneToOne;
     //---------------Test Result -----------------------
     Assert.IsFalse(isOneToOne);
 }