Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOQ Test for Hardcoded values #172

Closed
sameerpanicker opened this issue May 19, 2015 · 1 comment
Closed

MOQ Test for Hardcoded values #172

sameerpanicker opened this issue May 19, 2015 · 1 comment

Comments

@sameerpanicker
Copy link

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.

@stakx
Copy link
Contributor

stakx commented Jun 3, 2017

Hi @sameerpanicker, to be honest, I am not certain whether you have asked your question in the right place. The issues section of this repository is targeted more at dealing with bug reports and requests for new features; that is, with the on-going development of Moq itself.

I realise that it has been a long time since you posted this, and you've probably solved the problem by now. If you still need help, I would humbly suggest that you ask on a Q & A site such as Stack Overflow. Also, it always helps if you can show a bit of code that you already have; a prose description of code is often harder to understand than the code itself. ;-)

@stakx stakx closed this as completed Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants