MOQ Test for Hardcoded values
sameerpanicker opened this issue · 2 comments
sameerpanicker commented
I have a method which takes in a request object. The request object has a enum property.
Before the passed in request object is sent to the actual service, we change the enum value. i.e.
Passed enum value may be NULL or Enum Value1. Before the service call is done, the enum value is updated or hard coded i.e.
Enum Property = Enum Value 2.
I need to write a test to check whether the passed in enum value is Enum Value 2 and nothing else.
sameerpanicker commented
Can any one please suggest me anything on this ?
hmemcpy commented
Sorry, this board is not very active, unfortunately.
Maybe you'll have better luck asking on the Moq board instead? https://github.com/Moq/moq4/issues