Finally getting started on RFA. I ran NUnit's GUI and had 13 of the RFA tests to fail. I did a little investigation which indicated that the failure was in the test driver environment not in the test or the code.
I picked up Visual NUnit for VS 2010. Once I installed it and ran the tests under it, none of the RFA tests failed. The plugin indicates that 5 are them are "not implemented" and indeed they are not. For instance the TestExclusiveLockFails in RollaingFileAppenderTest.cs fails under NUnit with a bad substring index on line 1473. The problem is that the sh.Message is empty, presumably because there was no error. Yet, when run under the plugin, it errors as expected. I have just discovered the problem. When the test is running under NUnit, the current directory is log4Net\tests\bin\debug, yet the logger creates its log file in log4Net directory. Therefore, the two files are different and there is no error. This means the tests are going to need revamping to work under NUnit GUI. (Could this be a similar problem to what you have with NAnt?). It appears that there is no way to change the current directory in NUnit GUI, so the tests would need modifications to have a consistent current directory while running. Comments/Suggestions? I am new to the whole NUnit thing, so maybe there is an obvious solution I do not know about. FYI. Only 2 of the total 129 tests failed under the Visual NUnit plugin. TestGetEntryType in EventLogAppenderTest (looks like an expected SecurityException under Windows 7) and TestFullFix in RemotingAppednerTest. ---------------------------------------------------------------------- Roy Chastain
