public void TestInt64() { ConfigSource config = new ConfigSource(); config.SetValue("key", 64L); Assert.AreEqual(64L, config.GetInt32("key")); }
public void TestIn32() { ConfigSource config = new ConfigSource(); config.SetValue("key", 32); Assert.AreEqual(32, config.GetInt32("key")); }
public void GetChildValue() { ConfigSource config = new ConfigSource(); ConfigSource child = config.AddChild("test.child"); child.SetValue("value", 32); int value = config.GetInt32("test.child.value"); Assert.AreEqual(32, value); }