public void TestBlueprintFromBadBlueprintID() { long blueprintId = -1; Blueprint blueprint = Blueprint.FromEliteID(blueprintId); Assert.IsNull(blueprint); }
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")); }