Тестирование - Moq 

Page / - Изменено Alexandr Fokin в 2023/01/13 15:17 

Moq 
Изменено Alexandr Fokin
в 2023/01/13 15:17

Оглавление

moq/moq4
https://github.com/moq/moq4/tree/ecd540409
https://www.nuget.org/packages/Moq/

var moq = new Mock<IReadInterface>();
moq 
 .Setup(e => e.Method(It.IsAny<string>()))
 .Returns(
  ValueTask.FromResult(
  new Result()
   )
  );

Moq vs NSubstitute - Who is the winner?
https://dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi