use super::*;
#[test]
fn uninstall_message_distinguishes_removal_from_no_op() {
let removed =
uninstall_message(service::UninstallOutcome::Uninstalled, service::ServiceLevel::User);
let absent =
uninstall_message(service::UninstallOutcome::NotInstalled, service::ServiceLevel::User);
assert_ne!(removed, absent);
assert!(removed.contains("uninstalled"), "got {removed}");
assert!(!absent.contains("uninstalled"), "no-op must not claim a removal: {absent}");
}
#[test]
fn uninstall_message_names_the_level() {
let system =
uninstall_message(service::UninstallOutcome::Uninstalled, service::ServiceLevel::System);
assert!(system.contains("System"), "got {system}");
}