示例#1
0
        public async void Version2_algorithm(int inputValue, int expectedResult)
        {
            // Arrange
            var request = TestFactory.CreateHttpRequest();

            Environment.SetEnvironmentVariable("FF_USE_V2_ALGORITHM", "true", EnvironmentVariableTarget.Process);
            // Act
            var response = (OkObjectResult)await CalcFunction.Run(request, inputValue, logger);

            // Assert
            Assert.Equal(expectedResult, response.Value);
        }