示例#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);
        }
 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);
 }