Telerik JustMock
internal
class
Foo
{
public
static
void
StaticAction(
int
param1 = 0,
int
param2 = 0,
int
param3 = 0)
{
throw
new
NotImplementedException();
}
}
...
[TestMethod]
public
void
TestStaticMethodAcceptingNamedParameters()
{
// Arrange
Mock.SetupStatic<Foo>();
Mock.Arrange<Foo>(() => Foo.StaticAction(param2: 2, param1: 3)).OccursOnce();
// Act
Foo.StaticAction(3, 2);
// Assert
Mock.Assert<Foo>();
}