コード例 #1
0
ファイル: DataDefinitionTests.cs プロジェクト: rekrapt/EDDI
        public void TestBlueprintFromBadBlueprintID()
        {
            long      blueprintId = -1;
            Blueprint blueprint   = Blueprint.FromEliteID(blueprintId);

            Assert.IsNull(blueprint);
        }
コード例 #2
0
ファイル: DataDefinitionTests.cs プロジェクト: rekrapt/EDDI
        public void TestBlueprintFromBlueprintID()
        {
            long      blueprintId = 128740124;
            Blueprint blueprint   = Blueprint.FromEliteID(blueprintId);

            Assert.IsNotNull(blueprint);
            Assert.AreEqual(3, blueprint.grade);
            Assert.IsNotNull(blueprint.blueprintTemplate);
            Assert.AreEqual(3, blueprint.materials.Count);
            Assert.IsTrue(blueprint.materials.Select(m => m.edname).Contains("phosphorus"));
            Assert.IsTrue(blueprint.materials.Select(m => m.edname).Contains("uncutfocuscrystals"));
            Assert.IsTrue(blueprint.materials.Select(m => m.edname).Contains("symmetrickeys"));
        }