File: Latency\LatencyConsoleOptionsTests.cs
Web Access
Project: src\test\Libraries\Microsoft.Extensions.Telemetry.Tests\Microsoft.Extensions.Telemetry.Tests.csproj (Microsoft.Extensions.Telemetry.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 Microsoft.Extensions.Diagnostics.Latency.Test;
 
public class LatencyConsoleOptionsTests
{
    [Fact]
    public void ConsoleExporterOptions_BasicTest()
    {
        var o = new LatencyConsoleOptions();
        Assert.True(o.OutputCheckpoints);
        Assert.True(o.OutputTags);
        Assert.True(o.OutputMeasures);
 
        o.OutputCheckpoints = false;
        o.OutputTags = false;
        o.OutputMeasures = false;
 
        Assert.False(o.OutputCheckpoints);
        Assert.False(o.OutputTags);
        Assert.False(o.OutputMeasures);
    }
}