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 GetAddsAVariable() { TweakConfig config = new TweakConfig(); config.GetPropertyValue("test", 4); List<string> res = config.GetProperties(); List<string> exp = List("test"); CollectionAssert.AreEqual(exp, res); }
public void NoVariablesToBeginWith() { TweakConfig config = new TweakConfig(); List<string> properties = config.GetProperties(); CollectionAssert.IsEmpty(properties); }
public void DefaultValueHonored() { TweakConfig config = new TweakConfig(); double value = config.GetPropertyValue("value", 5.6); Assert.AreEqual(5.6, value); }
public void CannotSetNonExistentVariable() { TweakConfig config = new TweakConfig(); config.SetPropertyValue("test", 5); }