コード例 #1
0
        public void CanIncreaseSizeOfIAppenderArray()
        {
            var appenders = new IAppender[] { };
            var results   = Log4NetCommon <IAppender[]> .AddAppenderToResponse(
                appenders,
                new DirectSubmissionLog4NetAppender(null, 0));

            results.Length.Should().Be(1);
        }
コード例 #2
0
        public void CanWriteLogToAppender()
        {
            var appenders = new IAppender[] { };
            var results   = Log4NetCommon <IAppender[]> .AddAppenderToResponse(
                appenders,
                new DirectSubmissionLog4NetAppender(null, 0));

            results.Length.Should().Be(1);

            foreach (var result in results)
            {
                result.Name.Should().Be("Datadog");
            }
        }