public void Does_Not_Load_Undefined_Environment_Variables_With_No_Default() { this.LoadEnvironmentVariables(); EnvVarNormal.Should().BeNull(); EnvVarWithDifferentName.Should().BeNull(); }
public void Loads_Environment_Variables_With_Matching_Name() { const string expectedValue = "expected value"; Environment.SetEnvironmentVariable("EnvVarNormal", expectedValue); this.LoadEnvironmentVariables(); EnvVarNormal.Should().Be(expectedValue); }