← Back to team overview

nunit-core team mailing list archive

[Bug 515561] Re: Multiple test failures under .NET 1.1

 

The fix for PathUtils solves the problem.

The fix for parameterized fixtures simply marks any fixtures with null
arguments as invalid under .NET 1.1. We need to decide whether to handle
this situation in our own code (probably complex) or disable
parameterized features in .NET 1.1.


** Changed in: nunitv2
       Status: New => Fix Committed

** Changed in: nunitv2
   Importance: Undecided => Low

-- 
Multiple test failures under .NET 1.1
https://bugs.launchpad.net/bugs/515561
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: Fix Committed

Bug description:
We currently have a number of test failures under .NET 1.1. These are related to several different recent fixes and might more properly have been dealt with in the context of each fix. However, at this time it's convenient to group them so we can decide if they are fixable in the .NET 1.1 context or if the features involved should be disabled under .NET 1.1.

The latest build gives 8 test errors under .NET 1.1. Six of them relate to finding a constructor for a fixture with arguments and two to recent changes in RelativePath method in PathUtils.cs. The errors do not occur under .NET 2.0 or higher.

The following excerpts are taken from the test output...

     [exec] 1) SetUp Error : NUnit.Core.Tests.ParameterizedTestFixtureWithNullAr
guments("A",Null)
     [exec]    System.MissingMethodException : Member not found.   ( Reflect.cs:line 375 )

     [exec] 2) Parent Failure : NUnit.Core.Tests.ParameterizedTestFixtureWithNul
lArguments("A",Null).TestMethod
     [exec]    TestFixtureSetUp failed in ParameterizedTestFixtureWithNullArgume
nts

     [exec] 3) SetUp Error : NUnit.Core.Tests.ParameterizedTestFixtureWithNullAr
guments(Null,"A")
     [exec]    System.MissingMethodException : Member not found. ( Reflect.cs:line 375 )
 
     [exec] 4) Parent Failure : NUnit.Core.Tests.ParameterizedTestFixtureWithNul
lArguments(Null,"A").TestMethod
     [exec]    TestFixtureSetUp failed in ParameterizedTestFixtureWithNullArguments

     [exec] 5) SetUp Error : NUnit.Core.Tests.ParameterizedTestFixtureWithNullAr
guments(Null,Null)
     [exec]    System.MissingMethodException : Member not found. ( Reflect.cs:line 375 )

     [exec] 6) Parent Failure : NUnit.Core.Tests.ParameterizedTestFixtureWithNul
lArguments(Null,Null).TestMethod
     [exec]    TestFixtureSetUp failed in ParameterizedTestFixtureWithNullArguments

     [exec] 7) Test Failure : NUnit.Util.Tests.PathUtilTests_Unix.RelativePath
     [exec]      Expected string length 15 but was 18. Strings differ at index 0
.
     [exec]   Expected: "folder1/folder2"
     [exec]   But was:  "../folder1/folder2"
     [exec]   -----------^
     [exec]
     [exec] at NUnit.Util.Tests.PathUtilTests_Unix.RelativePath() in d:\Dev\NUni
t\nunit-2.5\work\src\ClientUtilities\tests\PathUtilTests.cs:line 220
     
     [exec] 8) Test Failure : NUnit.Util.Tests.PathUtilTests_Windows.RelativePat
h
     [exec]      Expected string length 15 but was 18. Strings differ at index 0
.
     [exec]   Expected: "folder1\\folder2"
     [exec]   But was:  "..\\folder1\\folder2"
     [exec]   -----------^
     [exec]
     [exec] at NUnit.Util.Tests.PathUtilTests_Windows.RelativePath() in d:\Dev\N
Unit\nunit-2.5\work\src\ClientUtilities\tests\PathUtilTests.cs:line 114