hmemcpy / AgentMulder

** THIS PLUGIN IS NO LONGER MAINTAINED. PLEASE FOLLOW ERNICOMMUNITY FOR UPDATES **
https://github.com/ERNICommunity/AgentMulder
MIT License
151 stars 33 forks source link

MOQ Test for Hardcoded values #73

Open sameerpanicker opened 9 years ago

sameerpanicker commented 9 years ago

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 9 years ago

Can any one please suggest me anything on this ?

hmemcpy commented 9 years ago

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