Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }