-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
Milestone
Description
The following example:
public class TestCase
{
[DefaultValue(nameof(Write))]
public void Write()
{
SimpleFile.Write(nameof(DoSomething));
}
private void DoSomething()
{
}
}
when transfromed into a new type should generate:
public class TestCaseAsync
{
[DefaultValue(nameof(WriteAsync))]
public Task WriteAsync()
{
return SimpleFile.WriteAsync(nameof(DoSomething));
}
private void DoSomething()
{
}
}
where nameof(Write)
should be converted to nameof(WriteAsync)
and DoSomething
must be copied as it is referenced by the argument of WriteAsync
method