public override void LoadPlan(string filename)
        {
            PlanFile pf = new PlanFile();

            pf.Load <Dictionary <string, ITitleLinkPair[]> >(filename);
            vehicleTypes         = pf.GetContent <ITitleLinkPair[]>();
            vehicleTypeProducers = pf.GetContent <Dictionary <string, ITitleLinkPair[]> >();
        }
Example #2
0
        public void Load_File_4Items()
        {
            PlanFile planFile = new PlanFile();
            string   fileName = "Save_NonEmptyArray_FileExists.pf";

            planFile.Load <Dictionary <string, ITitleLinkPair[]> >(fileName);
            Dictionary <string, ITitleLinkPair[]> vehicleTypeProducers = planFile.GetContent <Dictionary <string, ITitleLinkPair[]> >();

            Assert.IsTrue(vehicleTypeProducers.Count == 1 && vehicleTypeProducers["Otomobil"].Length == 4);
        }