public void RaiseIfNoPublicEnvironmentInGetPublicEnvironment() { ValueEnvironment parent = new ValueEnvironment(); ValueEnvironment environment = new ValueEnvironment(parent); environment.GetPublicEnvironment(); }
public void GetPublicEnvironment() { ValueEnvironment parent = new ValueEnvironment(ValueEnvironmentType.Public); ValueEnvironment environment = new ValueEnvironment(parent); Assert.AreEqual(parent, environment.GetPublicEnvironment()); Assert.AreEqual(parent, parent.GetPublicEnvironment()); }
public override void Execute(Machine machine, ValueEnvironment environment) { ValueEnvironment pubenv = environment.GetPublicEnvironment(); foreach (string name in this.names) { if (pubenv.GetValue(name) == null) { pubenv.SetEnvironmentValue(name, null); } } }