public void ThrowAnException_WhenConstraintIdNotFoundInDatabase() { IMT_Constraints constraintsTable = BuildConstraintsTable(); constraintsTable.LoadData(); Action codeToTest = () => constraintsTable.GetConstraints(-888); Assert.Throws <InvalidOperationException>(codeToTest); }
public void ReturnList_WhenConstraintIdNotFoundInDatabase() { IMT_Constraints constraintsTable = BuildConstraintsTable(); constraintsTable.LoadData(); var constraintsList = constraintsTable.GetConstraints(60101); Assert.NotEmpty(constraintsList); }