示例#1
0
    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));
    }
示例#2
0
 public void AutoDisposeController()
 {
     _loader.UnloadMod(_testData.TestModConfigA.ModId);
     Assert.Null(_loader.Manager.LoaderApi.GetController <IController>());
 }