// Tests for mecha10_cli::handlers::behaviors

use mecha10_cli::handlers::behaviors::*;

#[test]
fn test_behaviors_args() {
    let args = BehaviorsArgs {
        action: BehaviorAction::List,
        name: None,
    };

    assert_eq!(args.action, BehaviorAction::List);
    assert!(args.name.is_none());
}

#[test]
fn test_behavior_action_from_str() {
    assert_eq!(BehaviorAction::from_str("list"), Some(BehaviorAction::List));
    assert_eq!(BehaviorAction::from_str("create"), Some(BehaviorAction::Create));
    assert_eq!(BehaviorAction::from_str("validate"), Some(BehaviorAction::Validate));
    assert_eq!(BehaviorAction::from_str("invalid"), None);
}
