From 5fccf9ad4394f909815b218d4a5fde48ba065474 Mon Sep 17 00:00:00 2001 From: Alexander Cyon Date: Mon, 25 Nov 2024 14:20:03 +0100 Subject: [PATCH] set threshold unsupported tests --- crates/rules/src/roles_builder.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/crates/rules/src/roles_builder.rs b/crates/rules/src/roles_builder.rs index 32681e1d..29cd7af0 100644 --- a/crates/rules/src/roles_builder.rs +++ b/crates/rules/src/roles_builder.rs @@ -662,6 +662,15 @@ mod tests { test_duplicates_not_allowed(make(), list(), sample()) } + #[test] + fn set_threshold_is_unsupported() { + let mut sut = make(); + assert_eq!( + sut.set_threshold(1), + MutRes::basic_violation(BasicViolation::RecoveryCannotSetThreshold) + ); + } + #[test] fn cannot_add_factors_to_threshold() { let mut sut = make(); @@ -1136,6 +1145,15 @@ mod tests { FactorSource::sample_device_babylon_other() } + #[test] + fn set_threshold_is_unsupported() { + let mut sut = make(); + assert_eq!( + sut.set_threshold(1), + MutRes::basic_violation(BasicViolation::ConfirmationCannotSetThreshold) + ); + } + #[test] fn allowed_as_first_and_only() { // Arrange