public void GetEffect_ReturnsZero_IfEffectNotInDictionary() { BoostUnitCustomData systemUnderTest = new BoostUnitCustomData(); systemUnderTest.Effects = new Dictionary <string, int>(); Assert.AreEqual(0, systemUnderTest.GetEffect("TestEffect")); }
public void GetEffect_ReturnsEffectValue_IfEffectInDictionary() { BoostUnitCustomData systemUnderTest = new BoostUnitCustomData(); systemUnderTest.Effects = new Dictionary <string, int>() { { "TestEffect", 1 } }; Assert.AreEqual(1, systemUnderTest.GetEffect("TestEffect")); }