Пример #1
0
        public void GetLdmlFile_SldrStagingEnvironmentVariable_UsesStagingUrl()
        {
            var originalStagingValue = Environment.GetEnvironmentVariable(Sldr.SldrStaging);

            Environment.SetEnvironmentVariable(Sldr.SldrStaging, "true");
            StringAssert.Contains("&staging=1", Sldr.BuildLdmlRequestUrl("en", "", "", ""));
            Environment.SetEnvironmentVariable(Sldr.SldrStaging, originalStagingValue);
        }