public void SetIsNoted() { TweakConfig config = new TweakConfig(); config.GetPropertyValue("test", 5); config.SetPropertyValue("test", 6); Assert.AreEqual(6, config.GetPropertyValue("test", 4)); }
public void SecondGetDefaultValueIgnored() { TweakConfig config = new TweakConfig(); config.GetPropertyValue("test", 5); double value = config.GetPropertyValue("test", 6); Assert.AreEqual(5, value); }
public void SecondGetDoesNotAddVariable() { TweakConfig config = new TweakConfig(); config.GetPropertyValue("test", 4); config.GetPropertyValue("test", 5); List<string> res = config.GetProperties(); List<string> exp = List("test"); CollectionAssert.AreEqual(exp, res); }
public void DefaultValueHonored() { TweakConfig config = new TweakConfig(); double value = config.GetPropertyValue("value", 5.6); Assert.AreEqual(5.6, value); }