Export to GitHub

moq - issue #385

Properties attributes missing for mock object


Posted on Jul 31, 2015 by Helpful Panda

What steps will reproduce the problem? 1. Create a class with a property. The property has a custom attribute assigned to it. 2. Create a mock object from the class. 3. Using reflection, try to look for attributes of the property in the mock object. You will not found any.

What is the expected output? What do you see instead? Expected: Attributes assigned to property of a class are found in mock object. Actual: Attributes aren't found

What version of the product are you using? On what operating system? It is not working in version: 4.2.1507.118 (current version)

Please provide any additional information below. It was working in version: 4.2.1402.2112 (attributes were found)

Status: New

Labels:
Type-Defect Priority-Medium