Print width 120 (you can paste the example to https://playground.csharpier.com/)
Input:
public class ClassName
{
public static int Run()
{
await Assert.ThrowsAsync<IOException>(async () => await writer.FlushAsync(TestContext.Current.CancellationToken));
}
}
Output:
public class ClassName
{
public static int Run()
{
await Assert.ThrowsAsync<IOException>(async () => await writer.FlushAsync(TestContext.Current.CancellationToken)
);
}
}
Expected behavior:
public class ClassName
{
public static int Run()
{
await Assert.ThrowsAsync<IOException>(
async () => await writer.FlushAsync(TestContext.Current.CancellationToken)
);
}
}
or
public class ClassName
{
public static int Run()
{
await Assert.ThrowsAsync<IOException>(async () => await writer.FlushAsync(TestContext.Current.CancellationToken));
}
}
Print width 120 (you can paste the example to https://playground.csharpier.com/)
Input:
Output:
Expected behavior:
or