public void DefineSetAndGetLocalValue() { ValueEnvironment parent = new ValueEnvironment(ValueEnvironmentType.Public); ValueEnvironment environment = new ValueEnvironment(parent, ValueEnvironmentType.Local); environment.SetLocalValue("foo", null); environment.SetValue("foo", "bar"); Assert.AreEqual("bar", environment.GetValue("foo")); Assert.IsNull(parent.GetValue("foo")); }