WikiLens Envelope/Quill MockObjectNamingConventions

- Last edited February 24, 2002
Variables

 ExpectationCounter? _methodName_Calls;
 ReturnValues? _methodName_ActualReturnValues?;
 ExpectationList? _methodName_Parameter0Values? (etc);

Methods

 public void setExpectedCalls_methodName(...);
 public void addExpectedValues_methodName(...);
 public void setupReturn_methodName(...);

I prefer '_' to 'my', but this is not the issue. I think '_' separators is clearer: this is special code after all: test code, not production. MilesD

I disagree (on both counts), but it's more important to be consistent within your project than with the rest of the world. --SteveF

What is your preferred naming convention Steve? - MpC


- Last edited February 24, 2002

https://casino-brain.com/