Exemplo n.º 1
0
        public void TestBlueprintBadNameAndGrade()
        {
            string    blueprintName = "No such blueprint";
            int       grade         = 5;
            Blueprint blueprint     = Blueprint.FromNameAndGrade(blueprintName, grade);

            Assert.IsNull(blueprint);
        }
Exemplo n.º 2
0
        public void TestBlueprintNameAndGrade()
        {
            string    blueprintName = "Dirty Drive Tuning";
            int       grade         = 5;
            Blueprint blueprint     = Blueprint.FromNameAndGrade(blueprintName, grade);

            Assert.IsNotNull(blueprint);
            Assert.AreEqual(128673659, blueprint.blueprintId);
            Assert.AreEqual(grade, blueprint.grade);
            Assert.AreEqual("EngineDirty", blueprint.blueprintTemplate?.edname);
            Assert.AreEqual(3, blueprint.materials.Count);
            Assert.IsTrue(blueprint.materials.Select(m => m.edname).Contains("industrialfirmware"));
            Assert.IsTrue(blueprint.materials.Select(m => m.edname).Contains("cadmium"));
            Assert.IsTrue(blueprint.materials.Select(m => m.edname).Contains("pharmaceuticalisolators"));
        }