The collection of any tax or assessment levied or ordered to be levied to pay for the location and construction of any project under the provisions of this chapter shall not be enjoined perpetually or absolutely declared void by reason of any of the following:
The court in which any proceeding is brought to reverse or declare void the proceedings by which any project has been established, or to enjoin the tax levied to pay therefor, on application of either party, shall order examination of the premises, or survey of the same, or both, as may be deemed necessary. The court, on a final hearing, shall enter an order which is just and equitable, and may order the tax or any part thereof to remain on the tax lists for collection, or if the tax were paid under protest, may order, if justice requires, the whole or any part thereof to be refunded. The costs of such proceedings shall be apportioned among the parties as justice may require.
N.D.C.C. § 61-16.1-32