<
От версии < 1.7
отредактировано Alexandr Fokin
на 2023/04/26 10:15
К версии < 1.5 >
отредактировано Alexandr Fokin
на 2023/01/13 15:17
Изменить комментарий: Удаленный объект

Комментарий

Подробности

Свойства страницы
Содержимое
... ... @@ -4,29 +4,19 @@
4 4  
5 5  ----
6 6  
7 -Moq vs NSubstitute - Who is the winner?
8 -[[https:~~/~~/dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi>>https://dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi]]
7 +{{code language="C#"}}
8 +var moq = new Mock<IReadInterface>();
9 +moq
10 + .Setup(e => e.Method(It.IsAny<string>()))
11 + .Returns(
12 + ValueTask.FromResult(
13 + new Result()
14 + )
15 + );
16 +{{/code}}
9 9  
10 -----
11 11  
12 -==== Внутренние ссылки: ====
13 -
14 -====== Дочерние страницы: ======
15 -
16 -{{children/}}
17 -
18 -====== Обратные ссылки: ======
19 -
20 -{{velocity}}
21 -#set ($links = $doc.getBacklinks())
22 -#if ($links.size() > 0)
23 - #foreach ($docname in $links)
24 - #set ($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
25 - * [[$escapetool.xml($rdoc.fullName)]]
26 - #end
27 -#else
28 - No back links for this page!
29 -#end
30 -{{/velocity}}
31 -
32 32  ----
20 +
21 +Moq vs NSubstitute - Who is the winner?
22 +[[https:~~/~~/dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi>>https://dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi]]