public void GetByMissingId()
        {
            var modCol = new StatModifierCollection(OperatorType.Add);
            var result = modCol.Get("asdf");

            Assert.IsNull(result);
        }
        public void GetNull()
        {
            var modCol = new StatModifierCollection(OperatorType.Add);
            var result = modCol.Get(null);

            Assert.IsNull(result);
        }
        public void GetById()
        {
            var modCol = new StatModifierCollection(OperatorType.Add);

            modCol.Set("asdf", 22);
            var result = modCol.Get("asdf");

            Assert.AreEqual(22, result.value);
        }
        public void SetByIdChangeValue()
        {
            var modCol = new StatModifierCollection(OperatorType.Add);

            modCol.Set("asdf", 22);
            modCol.Set("asdf", 11.5f);
            var result = modCol.Get("asdf");

            Assert.AreEqual(11.5f, result.value);
        }
        public void SetByIdAutoRound()
        {
            var modCol = new StatModifierCollection(OperatorType.Add)
            {
                forceRound = true
            };

            modCol.Set("asdf", 22.4f);
            var result = modCol.Get("asdf");

            Assert.AreEqual(22, result.value);
        }