Buildfile: file:///C:/OSS/log4net/tests/nant.build Target framework: Microsoft .NET Framework 2.0 Target(s) specified: runtests check-current-build-config: set-build-configuration: set-debug-build-configuration: check-current-build-config: set-build-configuration-flags: check-current-build-config: set-framework-configuration: check-bin-dir: check-doc-dir: check-sdkdoc-dir: check-sdkdoc-debug: check-current-build-config: check-build-debug: check-build-defines: set-net-2.0-runtime-configuration: runtests: [echo] Running tests for net-2.0 check-bin-dir: check-doc-dir: check-sdkdoc-dir: check-sdkdoc-debug: check-current-build-config: check-build-debug: check-build-defines: set-net-2.0-runtime-configuration: check-log4net-basedir: check-current-bin-dir: clean-current-bin-dir: [echo] Cleaning the bin/net/2.0/debug binaries directory. [delete] Deleting directory 'C:\OSS\log4net\tests\bin\net\2.0\debug'. [mkdir] Creating directory 'C:\OSS\log4net\tests\bin\net\2.0\debug'. check-log4net-output-dir: check-log4net-assembly: compile-net-2.0: [copy] Copying 3 files to 'C:\OSS\log4net\tests\bin\net\2.0\debug'. [copy] Copying 1 file to 'C:\OSS\log4net\tests\bin\net\2.0\debug'. [csc] Compiling 35 files to 'C:\OSS\log4net\tests\bin\net\2.0\debug\log4net.Tests.dll'. runtests-net-2.0: [nunit2] log4net:WARN Exception while rendering format [IGNORE THIS WARNING - EXCEPTION EXPECTED Before {0} After {1} {2}] [nunit2] System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. [nunit2] at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) [nunit2] at System.String.Format(IFormatProvider provider, String format, Object[] args) [nunit2] at log4net.Util.SystemStringFormat.StringFormat(IFormatProvider provider, String format, Object[] args) in c:\OSS\log4net\src\Util\SystemStringFormat.cs:line 105 [nunit2] [nunit2] Tests run: 125, Failures: 10, Not run: 5, Time: 11.074 seconds [nunit2] [nunit2] Failures: [nunit2] 1) log4net.Tests.Appender.EventLogAppenderTest.TestGetEntryType : System.Security.SecurityException : The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. [nunit2] at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) [nunit2] at System.Diagnostics.EventLog.SourceExists(String source, String machineName) [nunit2] at System.Diagnostics.EventLog.SourceExists(String source) [nunit2] at log4net.Appender.EventLogAppender.ActivateOptions() in c:\OSS\log4net\src\Appender\EventLogAppender.cs:line 248 [nunit2] at log4net.Tests.Appender.EventLogAppenderTest.TestGetEntryType() in c:\OSS\log4net\tests\src\Appender\EventLogAppenderTest.cs:line 46 [nunit2] [nunit2] 2) log4net.Tests.Appender.RemotingAppenderTest.TestRemotedMessage : Expect to receive 1 remoted event [nunit2] Expected: 1 [nunit2] But was: 0 [nunit2] [nunit2] at log4net.Tests.Appender.RemotingAppenderTest.TestRemotedMessage() in c:\OSS\log4net\tests\src\Appender\RemotingAppenderTest.cs:line 72 [nunit2] [nunit2] 3) log4net.Tests.Appender.RollingFileAppenderTest.TestMinimalLockRecovers : Log contents is not what is expected [nunit2] Expected string length 21 but was 0. Strings differ at index 0. [nunit2] Expected: "This is a message 2\r\n" [nunit2] But was: [nunit2] -----------^ [nunit2] [nunit2] at log4net.Tests.Appender.RollingFileAppenderTest.AssertFileEquals(String filename, String contents) in c:\OSS\log4net\tests\src\Appender\RollingFileAppenderTest.cs:line 1432 [nunit2] at log4net.Tests.Appender.RollingFileAppenderTest.TestMinimalLockRecovers() in c:\OSS\log4net\tests\src\Appender\RollingFileAppenderTest.cs:line 1576 [nunit2] [nunit2] 4) log4net.Tests.Appender.RollingFileAppenderTest.TestMinimalLockUnlocks : Log contents is not what is expected [nunit2] Expected string length 46 but was 0. Strings differ at index 0. [nunit2] Expected: "This is a message\r\nTest\r\nThis is a message 2\r\n" [nunit2] But was: [nunit2] -----------^ [nunit2] [nunit2] at log4net.Tests.Appender.RollingFileAppenderTest.AssertFileEquals(String filename, String contents) in c:\OSS\log4net\tests\src\Appender\RollingFileAppenderTest.cs:line 1432 [nunit2] at log4net.Tests.Appender.RollingFileAppenderTest.TestMinimalLockUnlocks() in c:\OSS\log4net\tests\src\Appender\RollingFileAppenderTest.cs:line 1602 [nunit2] [nunit2] 5) log4net.Tests.Util.CyclicBufferTest.TestConstructorSize0 : System.ArgumentOutOfRangeException : Parameter: maxSize, Value: [0] out of range. Non zero positive integer required [nunit2] Parameter name: maxSize [nunit2] Actual value was 0. [nunit2] at log4net.Util.CyclicBuffer..ctor(Int32 maxSize) in c:\OSS\log4net\src\Util\CyclicBuffer.cs:line 55 [nunit2] at log4net.Tests.Util.CyclicBufferTest.TestConstructorSize0() in c:\OSS\log4net\tests\src\Util\CyclicBufferTest.cs:line 41 [nunit2] [nunit2] 6) log4net.Tests.Util.EnvironmentPatternConverterTest.SystemLevelEnvironmentVariable : System.Security.SecurityException : Requested registry access is not allowed. [nunit2] at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) [nunit2] at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) [nunit2] at System.Environment.SetEnvironmentVariable(String variable, String value, EnvironmentVariableTarget target) [nunit2] at log4net.Tests.Util.EnvironmentPatternConverterTest.SystemLevelEnvironmentVariable() in c:\OSS\log4net\tests\src\Util\EnvironmentPatternConverterTest.cs:line 24 [nunit2] [nunit2] 7) log4net.Tests.Util.LogLogTest.EmitInternalMessages : Expected: 2 [nunit2] But was: 0 [nunit2] [nunit2] at log4net.Tests.Util.LogLogTest.EmitInternalMessages() in c:\OSS\log4net\tests\src\Util\LogLogTest.cs:line 34 [nunit2] [nunit2] 8) log4net.Tests.Util.LogLogTest.LogReceivedAdapter : Expected: 2 [nunit2] But was: 3 [nunit2] [nunit2] at log4net.Tests.Util.LogLogTest.LogReceivedAdapter() in c:\OSS\log4net\tests\src\Util\LogLogTest.cs:line 55 [nunit2] [nunit2] 9) log4net.Tests.Util.SystemInfoTest.TestGetTypeFromStringFails1 : System.TypeLoadException : Could not load type 'LOG4NET.TESTS.UTIL.SYSTEMINFOTEST' from assembly 'LOG4NET.TESTS'. [nunit2] at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) [nunit2] at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) [nunit2] at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) [nunit2] at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) [nunit2] at log4net.Util.SystemInfo.GetTypeFromString(Assembly relativeAssembly, String typeName, Boolean throwOnError, Boolean ignoreCase) in c:\OSS\log4net\src\Util\SystemInfo.cs:line 687 [nunit2] at log4net.Util.SystemInfo.GetTypeFromString(String typeName, Boolean throwOnError, Boolean ignoreCase) in c:\OSS\log4net\src\Util\SystemInfo.cs:line 603 [nunit2] at log4net.Tests.Util.SystemInfoTest.TestGetTypeFromStringFails1() in c:\OSS\log4net\tests\src\Util\SystemInfoTest.cs:line 87 [nunit2] [nunit2] 10) log4net.Tests.Util.SystemInfoTest.TestGetTypeFromStringFails2 : System.TypeLoadException : Could not load type [LOG4NET.TESTS.UTIL.SYSTEMINFOTEST]. Tried assembly [log4net.Tests, Version=1.2.10.0, Culture=neutral, PublicKeyToken=null] and all loaded assemblies [nunit2] at log4net.Util.SystemInfo.GetTypeFromString(Assembly relativeAssembly, String typeName, Boolean throwOnError, Boolean ignoreCase) in c:\OSS\log4net\src\Util\SystemInfo.cs:line 672 [nunit2] at log4net.Util.SystemInfo.GetTypeFromString(String typeName, Boolean throwOnError, Boolean ignoreCase) in c:\OSS\log4net\src\Util\SystemInfo.cs:line 603 [nunit2] at log4net.Tests.Util.SystemInfoTest.TestGetTypeFromStringFails2() in c:\OSS\log4net\tests\src\Util\SystemInfoTest.cs:line 98 [nunit2] [nunit2] Tests not run: [nunit2] 1) log4net.Tests.Appender.RollingFileAppenderTest.TestInitialization7 : Not Implemented: Want to test dated files with mixed dates existing, to see that other dates do not matter [nunit2] 2) log4net.Tests.Appender.RollingFileAppenderTest.TestInitialization3 : Not Implemented: Want to test counted files limited up, to see that others are ?? ignored? deleted? [nunit2] 3) log4net.Tests.Appender.RollingFileAppenderTest.TestInitialization4 : Not Implemented: Want to test counted files limited down, to see that others are ?? ignored? deleted? [nunit2] 4) log4net.Tests.Appender.RollingFileAppenderTest.TestInitialization5 : Not Implemented: Want to test dated files with a limit, to see that others are ?? ignored? deleted? [nunit2] 5) log4net.Tests.Appender.RollingFileAppenderTest.TestInitialization6 : Not Implemented: Want to test dated files with no limit, to see that others are ?? ignored? deleted? [nunit2] [nunit2] BUILD FAILED C:\OSS\log4net\tests\nant.build(347,10): Tests Failed. Total time: 12.3 seconds.