public void CanParseQuality() { var p = new MockParser(PoEItemData.Gem.DIVINE_IRE); var item = p.Parse(); Assert.AreEqual(11, item.Quality); }
public void CanParseGloveEnchantments() { var p = new MockParser(PoEItemData.Armor.GLOVES_ENCHANTED); var item = p.Parse(); var enchant = "Trigger Word of Ire when Hit"; Assert.AreEqual(enchant, item.Enchantments[0].ToString()); }
public void CanParseDoubleEnchant() { var p = new MockParser(PoEItemData.Armor.HELMET_DOUBLE_ENCHANTED); var item = p.Parse(); Assert.AreEqual("1% increased Cleave Damage", item.Enchantments[0].ToString()); Assert.AreEqual("2% increased Cleave Damage", item.Enchantments[1].ToString()); }
public void CanParseSingleEnchant() { var p = new MockParser(PoEItemData.Armor.HELMET_ENCHANTED); var item = p.Parse(); var enchant = "25% increased Cleave Damage"; Assert.AreEqual(enchant, item.Enchantments[0].ToString()); }
public override bool Parse(MockParser parser) { if (!base.Parse(parser)) { return(false); } return(parser.Parse <Attribute, int>(new MockAttribute <Attribute>(Attribute.MockAttribute))); }
public override bool Parse(MockParser parser) { if (!base.Parse(parser)) { return(false); } parser.Parse(new MockAttribute <Attribute>(Attribute.MockAttribute)); parser.CheckAttribute(Attribute.MockAttribute, false); return(this.Valid); }
public void TestParseReturnsRequest() { Assert.Equal(_mockParser.Parse(new StreamReader(_mockSocket.GetStream())), _request); }