c# - Cannot mock class with constructor having array parameter using Rhino Mocks -


We can not duplicate our class in Rhinomox.

  public service {public service (command [] order) {}} public abstract class command {} // code-word mock = mock repository. Generatormock & lt; Services & gt; (New command [] {}); // or Fake = Mock Repository. Generatormock & lt; Services & gt; (Empty)  

Rhino texture fails to complain that the constructor can not be found with matching arguments. What am I doing?

Thanks,

Try this way:

  var mock = mock replica Generatormock & lt; Services & gt; (New object [] {new command [0]});  

Comments