@@ -573,15 +573,15 @@ Don't set `telemetryClient.Context.Operation.Id`. This global setting causes inc
573
573
574
574
The following example describes how to create a C # Function app in Visual Studio and run and tests with [xUnit ](https :// github.com/xunit/xunit).
575
575
576
- ! [Testing Azure Functions with C # in Visual Studio ](.. / articles / azure - functions / media / functions - test - a - function / azure - functions - test - visual - studio - xunit .png )
576
+ ! [Testing Azure Functions with C # in Visual Studio ](./ media / functions - test - a - function / azure - functions - test - visual - studio - xunit .png )
577
577
578
578
### Setup
579
579
580
580
To set up your environment , create a Function and test app . The following steps help you create the apps and functions required to support the tests :
581
581
582
- 1 . [Create a new Functions app ](.. / articles / azure - functions / functions - get - started .md ) and name it ** Functions **
583
- 2 . [Create an HTTP function from the template ](.. / articles / azure - functions / functions - get - started .md ) and name it ** MyHttpTrigger ** .
584
- 3 . [Create a timer function from the template ](.. / articles / azure - functions / functions - create - scheduled - function .md ) and name it ** MyTimerTrigger ** .
582
+ 1 . [Create a new Functions app ](functions - get - started .md ) and name it ** Functions **
583
+ 2 . [Create an HTTP function from the template ](functions - get - started .md ) and name it ** MyHttpTrigger ** .
584
+ 3 . [Create a timer function from the template ](functions - create - scheduled - function .md ) and name it ** MyTimerTrigger ** .
585
585
4 . [Create an xUnit Test app ](https :// xunit.net/docs/getting-started/netcore/cmdline) in the solution and name it **Functions.Tests**.
586
586
5 . Use NuGet to add a reference from the test app to [Microsoft .AspNetCore .Mvc ](https :// www.nuget.org/packages/Microsoft.AspNetCore.Mvc/)
587
587
6 . [Reference the * Functions * app ](/ visualstudio / ide / managing - references - in - a - project ) from * Functions .Tests * app .
@@ -794,13 +794,13 @@ The members implemented in this class are:
794
794
795
795
- ** Timer_should_log_message ** : This test creates an instance of `ListLogger ` and passes it to a timer functions . Once the function is run , then the log is checked to ensure the expected message is present .
796
796
797
- If you want to access application settings in your tests , you can [inject ](.. / articles / azure - functions / functions - dotnet - dependency - injection .md ) an `IConfiguration ` instance with mocked environment variable values into your function .
797
+ If you want to access application settings in your tests , you can [inject ](functions - dotnet - dependency - injection .md ) an `IConfiguration ` instance with mocked environment variable values into your function .
798
798
799
799
### Run tests
800
800
801
801
To run the tests , navigate to the ** Test Explorer ** and click ** Run all ** .
802
802
803
- ! [Testing Azure Functions with C # in Visual Studio ](.. / articles / azure - functions / media / functions - test - a - function / azure - functions - test - visual - studio - xunit .png )
803
+ ! [Testing Azure Functions with C # in Visual Studio ](./ media / functions - test - a - function / azure - functions - test - visual - studio - xunit .png )
804
804
805
805
### Debug tests
806
806
0 commit comments