// Tests for mecha10_cli::handlers::add

use mecha10_cli::handlers::add::*;

#[test]
fn test_add_args() {
    let args = AddArgs {
        component: "camera".to_string(),
        enabled: true,
        interactive: false,
    };

    assert_eq!(args.component, "camera");
    assert!(args.enabled);
    assert!(!args.interactive);
}

#[test]
fn test_add_args_interactive() {
    let args = AddArgs {
        component: "rplidar".to_string(),
        enabled: false,
        interactive: true,
    };

    assert_eq!(args.component, "rplidar");
    assert!(!args.enabled);
    assert!(args.interactive);
}
