Skip to content
Discussion options

You must be logged in to vote

Apologies for my own confusion, figure out a way to make it work, for reference this is:
public static class RpcTestData
{
public static IEnumerable<Func<TestDataRow>> GeRpcContexts()
{
yield return () => new(new JsonRpcContext(), DisplayName: "JsonRpc");

}

}

public class Foo
{
[Test]
[MethodDataSource(typeof(RpcTestData), nameof(RpcTestData.GeRpcContexts))]
public async Task TestRequestAsync(IRpcContext _)
{
await Task.Delay(500);
}
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rodrigovaras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant