예제 #1
0
 public void GetAzureFunctionBaseFolder_When_Does_Not_Have_Home_EnvVar_Return_Null()
 {
     AzureEnvironment.SetRunningInAzureEnvVars();
     AzureEnvironment.SetEnvironmentVariable(AzureFunctionsFileHelper.AzureHomeEnvVarName, null);
     Assert.Null(AzureFunctionsFileHelper.GetFunctionBaseFolder());
 }
예제 #2
0
 public void IsFunctionRunningInAzure_When_Does_Have_Azure_EnvVars_Should_Returns_True()
 {
     AzureEnvironment.SetRunningInAzureEnvVars();
     Assert.True(AzureFunctionsFileHelper.IsRunningAsFunctionInAzureOrContainer());
 }
예제 #3
0
 public void GetAzureFunctionBaseFolder_When_Not_Running_In_Azure_Should_Return_Null()
 {
     Assert.Null(AzureFunctionsFileHelper.GetFunctionBaseFolder());
 }
예제 #4
0
 public void IsFunctionRunningInAzure_When_Does_Not_Have_Azure_EnvVars_Should_Returns_False()
 {
     Assert.False(AzureFunctionsFileHelper.IsRunningAsFunctionInAzureOrContainer());
 }