// Exact Rust translations of the world-manager cases in
// LibreMetaverse.Tests/ConstructorNullArgumentTests.cs.
// Source SHA-256: 28deea0bf4d9353a2424842c6184abab8fe82746ceb12e093912728a247f21bc

use libremetaverse::{AgentManager, Error, GridManager, ObjectManager};

// parity-case: LibreMetaverse.Tests/ConstructorNullArgumentTests.cs::ConstructorNullArgumentTests.GridManager_Null_Throws::test e972a95f334b0f46948cda34c27124c28c44faf4372d0e598d7dc60050b49be4 translated
#[test]
fn grid_manager_null_throws() {
    assert!(matches!(GridManager::new(None), Err(Error::ArgumentNull)));
}

// parity-case: LibreMetaverse.Tests/ConstructorNullArgumentTests.cs::ConstructorNullArgumentTests.ObjectManager_Null_Throws::test 8a11feba0edfb35e5dd99f681182e8f5a5cf8a3f738211b45a683a8a2ad45ddb translated
#[test]
fn object_manager_null_throws() {
    assert!(matches!(ObjectManager::new(None), Err(Error::ArgumentNull)));
}

// parity-case: LibreMetaverse.Tests/ConstructorNullArgumentTests.cs::ConstructorNullArgumentTests.AgentManager_Null_Throws::test d86e41b6cdd03063685aa330c31b9a274c1d400b9a461abf3065fe185fe0bbf0 translated
#[test]
fn agent_manager_null_throws() {
    assert!(matches!(AgentManager::new(None), Err(Error::ArgumentNull)));
}
