← Back to team overview

nunit-core team mailing list archive

[Bug 996427] [NEW] ListMapper.Property doesn't work with fields

 

Public bug reported:

When using the ListMapper to perform a task such as: 
> List.Map(values).Property("subValue") 
the expected outcome (a list of subValues) is achieved if the property subValue is encapsulated (get/set), but not if it's a field.

I'd assume this is a reflection quirk, but I'm not up on the details.

** Affects: nunit-3.0
     Importance: Undecided
         Status: New


** Tags: listmapper

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/996427

Title:
  ListMapper.Property doesn't work with fields

Status in NUnit Test Framework:
  New

Bug description:
  When using the ListMapper to perform a task such as: 
  > List.Map(values).Property("subValue") 
  the expected outcome (a list of subValues) is achieved if the property subValue is encapsulated (get/set), but not if it's a field.

  I'd assume this is a reflection quirk, but I'm not up on the details.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/996427/+subscriptions


Follow ups

References