//! Tests for `ConfigManager`.

use cfgmatic::ConfigManager;

#[test]
fn test_manager_creation() {
    let manager = ConfigManager::new("testapp");
    assert_eq!(manager.app_name(), "testapp");
}

#[test]
fn test_manager_env_prefix() {
    let manager = ConfigManager::new("myapp").with_env_prefix("MYAPP");
    // Can't test private field, just verify creation works
    assert_eq!(manager.app_name(), "myapp");
}

#[test]
fn test_manager_builder_methods() {
    let manager = ConfigManager::new("myapp").with_env(false);
    // Can't test private field, just verify creation works
    assert_eq!(manager.app_name(), "myapp");
}
