File: ConfigurationTests.cs
Web Access
Project: src\tests\Aspire.Npgsql.Tests\Aspire.Npgsql.Tests.csproj (Aspire.Npgsql.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Xunit;
 
namespace Aspire.Npgsql.Tests;
 
public class ConfigurationTests
{
    [Fact]
    public void ConnectionStringIsNullByDefault()
    => Assert.Null(new NpgsqlSettings().ConnectionString);
 
    [Fact]
    public void HealthCheckIsEnabledByDefault()
        => Assert.False(new NpgsqlSettings().DisableHealthChecks);
 
    [Fact]
    public void TracingIsEnabledByDefault()
        => Assert.False(new NpgsqlSettings().DisableTracing);
 
    [Fact]
    public void MetricsAreEnabledByDefault()
        => Assert.False(new NpgsqlSettings().DisableMetrics);
}