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