public void GetAzureFunctionBaseFolder_When_Does_Not_Have_Home_EnvVar_Return_Null() { AzureEnvironment.SetRunningInAzureEnvVars(); AzureEnvironment.SetEnvironmentVariable(AzureFunctionsFileHelper.AzureHomeEnvVarName, null); Assert.Null(AzureFunctionsFileHelper.GetFunctionBaseFolder()); }
public void IsFunctionRunningInAzure_When_Does_Have_Azure_EnvVars_Should_Returns_True() { AzureEnvironment.SetRunningInAzureEnvVars(); Assert.True(AzureFunctionsFileHelper.IsRunningAsFunctionInAzureOrContainer()); }
public void GetAzureFunctionBaseFolder_When_Not_Running_In_Azure_Should_Return_Null() { Assert.Null(AzureFunctionsFileHelper.GetFunctionBaseFolder()); }
public void IsFunctionRunningInAzure_When_Does_Not_Have_Azure_EnvVars_Should_Returns_False() { Assert.False(AzureFunctionsFileHelper.IsRunningAsFunctionInAzureOrContainer()); }