(a) If the probate of a will is not contested, the testimony of the required witnesses may be taken by affidavit, unless the court shall direct otherwise.
(b) If the will is contested, or on motion of an interested person made prior to admission of the will to probate, the will shall be established by testimony taken in the manner required for taking testimony in equity cases, or as the court may direct.