public void GetRelevantStatsTest() { CalculationsRestoSham calc = new CalculationsRestoSham(); { Stats s = new Stats() { Hp5 = 1 }; Assert.AreEqual <Stats>(s, calc.GetRelevantStats(s)); } { Stats s = new Stats() { Mage2T10 = 1 }; Assert.AreNotEqual <Stats>(s, calc.GetRelevantStats(s)); Stats correct = new Stats(); Assert.AreEqual <Stats>(correct, calc.GetRelevantStats(s)); } { Stats full = new Stats() { Mage2T10 = 1, Mana = 1 }; Stats wanted = new Stats() { Mana = 1 }; Assert.AreNotEqual <Stats>(full, calc.GetRelevantStats(full)); Assert.AreEqual <Stats>(wanted, calc.GetRelevantStats(full)); } { Stats full = new Stats() { Mage2T10 = 1, Mana = 1, AttackPower = 10000, Mp5 = 100, TotemCHBaseCost = 1, ThreatIncreaseMultiplier = 0 }; Stats wanted = new Stats() { Mana = 1, Mp5 = 100, TotemCHBaseCost = 1 }; Assert.AreNotEqual <Stats>(full, calc.GetRelevantStats(full)); Assert.AreEqual <Stats>(wanted, calc.GetRelevantStats(full)); } }
public void GetRelevantStatsTest() { CalculationsRestoSham calc = new CalculationsRestoSham(); { Stats s = new Stats() { Hp5 = 1 }; Assert.AreEqual<Stats>(s, calc.GetRelevantStats(s)); } { Stats full = new Stats() { Strength = 1, Mana = 1 }; Stats wanted = new Stats() { Mana = 1 }; Assert.AreNotEqual<Stats>(full, calc.GetRelevantStats(full)); Assert.AreEqual<Stats>(wanted, calc.GetRelevantStats(full)); } { Stats full = new Stats() { // Mage2T10 = 1, Mana = 1, AttackPower = 10000, Mp5 = 100, // TotemCHBaseCost = 1, ThreatIncreaseMultiplier = 0 }; Stats wanted = new Stats() { Mana = 1, Mp5 = 100, // TotemCHBaseCost = 1 }; Assert.AreNotEqual<Stats>(full, calc.GetRelevantStats(full)); Assert.AreEqual<Stats>(wanted, calc.GetRelevantStats(full)); } }
public void HasRelevantStatsTest() { CalculationsRestoSham calc = new CalculationsRestoSham(); { Stats s = new Stats() { Hp5 = 1 }; Assert.IsTrue(calc.HasRelevantStats(s)); } { Stats s = new Stats() { Mana = 1, AttackPower = 10000, Mp5 = 100, ThreatIncreaseMultiplier = 0 }; Assert.IsTrue(calc.HasRelevantStats(s)); } }
public void HasRelevantStatsTest() { CalculationsRestoSham calc = new CalculationsRestoSham(); { Stats s = new Stats() { Hp5 = 1 }; Assert.IsTrue(calc.HasRelevantStats(s)); } { Stats s = new Stats() { Mana = 1, AttackPower = 10000, Mp5 = 100, ThreatIncreaseMultiplier = 0 }; Assert.IsTrue(calc.HasRelevantStats(s)); } }
internal ReferenceCharacter(CalculationsRestoSham calculationsObject) { _Calculations = calculationsObject; }