-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4b4f03
commit 320d60c
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...Conversions/Dfe.PrepareConversions.Tests/Configuration/ApplicationInsightsOptionsTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Dfe.PrepareConversions.Configuration; | ||
using Xunit; | ||
|
||
namespace Dfe.PrepareConversions.Tests.Configuration; | ||
|
||
public class ApplicationInsightsOptionsTests | ||
{ | ||
[Fact] | ||
public void Configuration_section_should_be_ApplicationInsights() | ||
{ | ||
Assert.Equal("ApplicationInsights", ApplicationInsightsOptions.ConfigurationSection); | ||
} | ||
|
||
[Fact] | ||
public void ConnectionString_should_default_to_null() | ||
{ | ||
var _options = new ApplicationInsightsOptions(); | ||
Assert.Null(_options.ConnectionString); | ||
} | ||
|
||
[Fact] | ||
public void InstrumentationKey_should_default_to_null() | ||
{ | ||
var _options = new ApplicationInsightsOptions(); | ||
Assert.Null(_options.InstrumentationKey); | ||
} | ||
|
||
[Fact] | ||
public void EnableBrowserAnalytics_should_default_to_null() | ||
{ | ||
var _options = new ApplicationInsightsOptions(); | ||
Assert.Null(_options.EnableBrowserAnalytics); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters