Exemplo n.º 1
0
        public void ConstructorHappyPath2()
        {
            var infoLogAttribute = new InfoLogAttribute(null, null);

            infoLogAttribute.MessageFormat.Should().Be(DefaultMessageFormat);
            infoLogAttribute.LoggerName.Should().Be(DefaultName);
            infoLogAttribute.LogLevel.Should().Be(LogLevel.Info);
        }
Exemplo n.º 2
0
        public void ConstructorHappyPath1()
        {
            string messageFormat = "My message format: {0}.";
            string loggerName    = "MyLogger";

            var infoLogAttribute = new InfoLogAttribute(messageFormat, loggerName);

            infoLogAttribute.MessageFormat.Should().Be(messageFormat);
            infoLogAttribute.LoggerName.Should().Be(loggerName);
            infoLogAttribute.LogLevel.Should().Be(LogLevel.Info);
        }