Skip to content

Commit 83c7346

Browse files
committed
Increase test coverage.
1 parent e2629c6 commit 83c7346

3 files changed

Lines changed: 396 additions & 37 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright Subatomix Research Inc.
2+
// SPDX-License-Identifier: MIT
3+
4+
namespace PSql.Tests.Unit;
5+
6+
using static AzureAuthenticationMode;
7+
8+
[TestFixture]
9+
public class AzureAuthenticationModeExtensionsTests
10+
{
11+
[Test]
12+
[TestCase(SqlPassword , "Sql Password" )]
13+
[TestCase(AadPassword , "Active Directory Password" )]
14+
[TestCase(AadIntegrated , "Active Directory Integrated" )]
15+
[TestCase(AadInteractive , "Active Directory Interactive" )]
16+
[TestCase(AadServicePrincipal , "Active Directory Service Principal")]
17+
[TestCase(AadDeviceCodeFlow , "Active Directory Device Code Flow" )]
18+
[TestCase(AadManagedIdentity , "Active Directory Managed Identity" )]
19+
[TestCase(AadDefault , "Active Directory Default" )]
20+
[TestCase(-1 , null )]
21+
public void RenderForConnectionString(AzureAuthenticationMode mode, string? value)
22+
{
23+
mode.RenderForConnectionString().ShouldBe(value);
24+
}
25+
}

0 commit comments

Comments
 (0)