Ejemplo n.º 1
0
        public void AutodetectedCanSatisfyRelationships()
        {
            using (var ksp = new DisposableKSP())
            {
                registry.RegisterPreexistingModule(ksp.KSP, Path.Combine(ksp.KSP.GameData(), "ModuleManager.dll"), new ModInfoJson()
                {
                    name    = "ModuleManager",
                    version = new ModVersion("0.2.3")
                });

                var depends = new List <ModDependency>()
                {
                    new ModDependency("ModuleManager")
                };

                CfanModule mod = generator.GeneratorRandomModule(depends: depends);

                new RelationshipResolver(
                    new CfanModule[] { mod },
                    RelationshipResolver.DefaultOpts(),
                    registry,
                    new FactorioVersion("1.0.0")
                    );
            }
        }