mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
657a05c2d2
Moq can no longer be trusted from a security/privacy standpoint (see https://github.com/moq/moq/issues/1372). As I do prefer Moq I may revert this if there is a trustworthy fork.
12 lines
267 B
C#
12 lines
267 B
C#
using NSubstitute;
|
|
using Xunit;
|
|
|
|
namespace NAPS2.Sdk.Tests;
|
|
|
|
public static class TestExtensions
|
|
{
|
|
public static void ReceivedCallsCount<T>(this T substitute, int count) where T : class
|
|
{
|
|
Assert.Equal(count, substitute.ReceivedCalls().Count());
|
|
}
|
|
} |