public void RegisterAOT_T_Correct() { //Arrange var container = new InjectionContainer(); ICommandDispatcher dispatcher; someClass sc = new someClass(); //Act container .RegisterAOT <UnityContainerAOT>() .RegisterAOT <EventContainerAOT>() .RegisterAOT <CommanderContainerAOT>() .RegisterCommand <TestCommand1>() .Bind <Transform>().ToPrefab("06_Commander/Prism"); container.PoolCommands(); dispatcher = container.GetCommandDispatcher(); dispatcher.Dispatch <TestCommand1>(sc); //Assert Assert.AreEqual( true, dispatcher != null && sc.id == 1 && container.GetTypes <Transform>().Count == 1 && ((PrefabInfo)container.GetTypes <Transform>()[0].value).path == "06_Commander/Prism"); }