How to Moq a method in C# whose input parameter is of type Enum?

  • Thread starter Thread starter how to sftp a file from dotnetcode
  • Start date Start date
H

how to sftp a file from dotnetcode

Guest
How to Moq a method in C# whose input parameter is of type Enum?

Moq.MockRepository mock = new Moq.MockRepository(MockBehaviour.Loose);
var myInstance =mock.Create<IMyMethod>();
myInstance.SetUp(x=>x.myMethod(It.IsAny<**`EnumType`**>).Verifiable();


How to Give ENUMType here


BSK

Continue reading...
 
Back
Top