Skip to content

Commit

Permalink
Add UT for debug files
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource committed Oct 7, 2022
1 parent 8c6f040 commit 5a7d190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static void DoNotHardcodeCredentials_WebConfig(AnalyzerLanguage language
{
var root = @"TestCases\WebConfig\DoNotHardcodeCredentials";
var webConfigPaths = Directory.GetFiles(root, "*.config", SearchOption.AllDirectories);
webConfigPaths.Should().HaveCount(5);
webConfigPaths.Should().HaveCount(6);
var compilation = CreateCompilation(language);
foreach (var webConfigPath in webConfigPaths)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<connectionStrings xdt:Transform="Replace">
<add connectionString="Server=localhost; Database=Test; User=SA; Password=Secret123"/> <!-- Compliant, we don't raise in this file -->
</connectionStrings>
</configuration>

0 comments on commit 5a7d190

Please sign in to comment.