public void UnloadModWithDependencies() { // Now load and unload TestModE // TestModE depends on TestModC // TestModC should stay loaded. _loader.LoadMod(_testEnvironmoent.TestModConfigE.ModId); _loader.UnloadMod(_testEnvironmoent.TestModConfigE.ModId); // Test Mod C should still be loaded. Assert.True(_loader.Manager.IsModLoaded(_testEnvironmoent.TestModConfigC.ModId)); }
public void AutoDisposeController() { _loader.UnloadMod(_testData.TestModConfigA.ModId); Assert.Null(_loader.Manager.LoaderApi.GetController <IController>()); }