Exemplo n.º 1
0
 private void FetchManagers()
 {
     Manager[] managers = GetComponents <Manager>();
     foreach (Manager manager in managers)
     {
         managerStore.Add(manager);
     }
 }
Exemplo n.º 2
0
        public void TryGetManagerNotFound()
        {
            IManagerStore managerStore  = new ManagerStore();
            DriverManager managerToKeep = GetManager();

            managerStore.Add("TestDriver", managerToKeep);
            var result = managerStore.TryGetManager <WebServiceDriverManager>("NotFound", out var driverManager);

            Assert.IsFalse(result, "Should not find driver");
            Assert.IsNull(driverManager, "Driver was not null");
        }