File: ConfigurationTests.cs
Web Access
Project: src\tests\Aspire.MySqlConnector.Tests\Aspire.MySqlConnector.Tests.csproj (Aspire.MySqlConnector.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.MySqlConnector.Tests;
 
public class ConfigurationTests
{
    [Fact]
    public void ConnectionStringIsNullByDefault()
    => Assert.Null(new MySqlConnectorSettings().ConnectionString);
 
    [Fact]
    public void HealthCheckIsEnabledByDefault()
        => Assert.False(new MySqlConnectorSettings().DisableHealthChecks);
 
    [Fact]
    public void TracingIsEnabledByDefault()
        => Assert.False(new MySqlConnectorSettings().DisableTracing);
 
    [Fact]
    public void MetricsAreEnabledByDefault()
        => Assert.False(new MySqlConnectorSettings().DisableMetrics);
}