コード例 #1
0
        public void Does_Not_Load_Undefined_Environment_Variables_With_No_Default()
        {
            this.LoadEnvironmentVariables();

            EnvVarNormal.Should().BeNull();
            EnvVarWithDifferentName.Should().BeNull();
        }
コード例 #2
0
        public void Loads_Environment_Variables_With_Matching_Name()
        {
            const string expectedValue = "expected value";

            Environment.SetEnvironmentVariable("EnvVarNormal", expectedValue);

            this.LoadEnvironmentVariables();

            EnvVarNormal.Should().Be(expectedValue);
        }