File: LoggingMethodTests.cs
Web Access
Project: src\test\Generators\Microsoft.Gen.Logging\Unit\Microsoft.Gen.Logging.Unit.Tests.csproj (Microsoft.Gen.Logging.Unit.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.Gen.Logging.Model;
using Xunit;
 
namespace Microsoft.Gen.Logging.Test;
 
public class LoggingMethodTests
{
    [Fact]
    public void Fields_Should_BeInitialized()
    {
        var instance = new LoggingMethod();
        Assert.Empty(instance.Name);
        Assert.Empty(instance.Message);
        Assert.Empty(instance.Modifiers);
        Assert.Equal("_logger", instance.LoggerMember);
    }
}