When methods are generated in a new type, async methods should not be copied if not used.
Example:
public class AlreadyAsync
{
public void Read()
{
SimpleFile.Read();
}
public void Read2()
{
}
public Task Read2Async()
{
return SimpleFile.ReadAsync();
}
public Task Read3Async()
{
return SimpleFile.ReadAsync();
}
}
Expected: Only ReadAsync method should be generated.
Actual:ReadAsync, Read2Async and Read3Async are generated.
When methods are generated in a new type, async methods should not be copied if not used. Example:
Expected: Only
ReadAsync
method should be generated. Actual:ReadAsync
,Read2Async
andRead3Async
are generated.