Ejemplo n.º 1
0
        public void TestLoadsFromResources()
        {
            // TODO: Put in loader
            // TODO: Test file in test project
            BlueprintListing.LoadAllBlueprints();

            var powerPlant = BlueprintListing.GetBlueprintByLabel(Blueprints.POWER_PLANT);

            Assert.AreEqual("Pwr.Plnt.", powerPlant.Label);

            var machinegun = BlueprintListing.GetBlueprintByLabel(Blueprints.MACHINEGUN);

            Assert.AreEqual("Mchngn.", machinegun.Label);
        }
Ejemplo n.º 2
0
 public void Initialize()
 {
     this.ent = new Entity();
     this.cmp = new TestComponent();
     BlueprintListing.LoadAllBlueprints();
 }