public void LogsNullConfiguration()
        {
            Log4NetTracingInterceptor logger = new Log4NetTracingInterceptor("app.config");
            string expected = "DEBUG - Configuration: source=, name=, value=\r\n";

            logger.Configuration(null, null, null);
            Assert.Equal(expected, File.ReadAllText(logFileName));
        }
        public void LogsConfiguration()
        {
            Log4NetTracingInterceptor logger = new Log4NetTracingInterceptor("app.config");
            string expected = "DEBUG - Configuration: source=sourceName, name=Name, value=Value\r\n";

            logger.Configuration("sourceName", "Name", "Value");
            Assert.Equal(expected, File.ReadAllText(logFileName));
        }
Exemple #3
0
        public void LogsNullConfiguration()
        {
            Log4NetTracingInterceptor logger = new Log4NetTracingInterceptor("Microsoft.Rest.ClientRuntime.Tracing.Tests.dll.config");
            string expected = "DEBUG - Configuration: source=, name=, value=\r\n";

            logger.Configuration(null, null, null);
            Assert.Equal(expected, File.ReadAllText(logFileName));
        }