Closed
Description
Analyzers should be able to detect following wrong usages
namespace MyNamespace
{
public class Foo
{
public int Bar()
{
return 2;
}
}
public class FooTests
{
public void Test()
{
var substitute = NSubstitute.Substitute.For<Foo>();
substitute.Received().Bar();
substitute.ReceivedWithAnyArgs().Bar()
substitute.DidNotReceive().Bar();
substitute.DidNotReceiveWithAnyArgs().Bar();
}
}
}
and of course usages of beforementioned examples executed as ordinal method