← Back to team overview

nunit-core team mailing list archive

[Bug 685271] [NEW] Use of constraints to specify arguments to MockCall fails with DomainUsage Multiple

 

Public bug reported:

When running tests under NAnt using -domain:Multiple, the test
NUnit.Mocks.Tests.MockTests.ConstraintArgumentSucceeds fails because the
expression 'expectedArgs[i] is IResolveConstraint' is false in
MockCall.cs line 41.

It appears that a separate copy of the nunit.mocks assembly is being
used in the domain.

The build script has been changed to avoid use of -domain:Multiple.

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/685271

Title:
  Use of constraints to specify arguments to MockCall fails with DomainUsage Multiple

Status in NUnit V2 Test Framework:
  New

Bug description:
  When running tests under NAnt using -domain:Multiple, the test NUnit.Mocks.Tests.MockTests.ConstraintArgumentSucceeds fails because the expression 'expectedArgs[i] is IResolveConstraint' is false in MockCall.cs line 41.

It appears that a separate copy of the nunit.mocks assembly is being used in the domain.

The build script has been changed to avoid use of -domain:Multiple.





Follow ups

References