Example #1
0
        public void ThrowAnException_WhenConstraintIdNotFoundInDatabase()
        {
            IMT_Constraints constraintsTable = BuildConstraintsTable();

            constraintsTable.LoadData();

            Action codeToTest = () => constraintsTable.GetConstraints(-888);

            Assert.Throws <InvalidOperationException>(codeToTest);
        }
Example #2
0
        public void ReturnList_WhenConstraintIdNotFoundInDatabase()
        {
            IMT_Constraints constraintsTable = BuildConstraintsTable();

            constraintsTable.LoadData();

            var constraintsList = constraintsTable.GetConstraints(60101);

            Assert.NotEmpty(constraintsList);
        }