From 8145ffe1df413c29b4cba9f556c854de4632f8ee Mon Sep 17 00:00:00 2001 From: Jay Malhotra Date: Sat, 30 Nov 2024 19:39:55 +0000 Subject: [PATCH] Make test code whitespace consistent --- .../X1000/UseCancellationTokenFixerTests.cs | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/src/xunit.analyzers.tests/Fixes/X1000/UseCancellationTokenFixerTests.cs b/src/xunit.analyzers.tests/Fixes/X1000/UseCancellationTokenFixerTests.cs index 610266e1..c31a2913 100644 --- a/src/xunit.analyzers.tests/Fixes/X1000/UseCancellationTokenFixerTests.cs +++ b/src/xunit.analyzers.tests/Fixes/X1000/UseCancellationTokenFixerTests.cs @@ -106,15 +106,15 @@ public async Task UseCancellationTokenArgument_ParamsArgument() using MyContext = Xunit.TestContext; public class TestClass { - [Xunit.Fact] - public void TestMethod() - { - [|Function(1, 2, 3)|]; - } + [Xunit.Fact] + public void TestMethod() + { + [|Function(1, 2, 3)|]; + } - void Function(params int[] integers) { } + void Function(params int[] integers) { } - void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } + void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } } """; var after = /* lang=c#-test */ """ @@ -123,15 +123,15 @@ void Function(params int[] integers) { } using MyContext = Xunit.TestContext; public class TestClass { - [Xunit.Fact] - public void TestMethod() - { - Function(new int[] { 1, 2, 3 }, MyContext.Current.CancellationToken); - } + [Xunit.Fact] + public void TestMethod() + { + Function(new int[] { 1, 2, 3 }, MyContext.Current.CancellationToken); + } - void Function(params int[] integers) { } + void Function(params int[] integers) { } - void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } + void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } } """; @@ -147,15 +147,15 @@ public async Task UseCancellationTokenArgument_ParamsArgumentAfterRegularArgumen using MyContext = Xunit.TestContext; public class TestClass { - [Xunit.Fact] - public void TestMethod() - { - [|Function("hello", System.Guid.NewGuid(), System.Guid.NewGuid())|]; - } + [Xunit.Fact] + public void TestMethod() + { + [|Function("hello", System.Guid.NewGuid(), System.Guid.NewGuid())|]; + } - void Function(string str, params System.Guid[] guids) { } + void Function(string str, params System.Guid[] guids) { } - void Function(string str, System.Guid[] guids, CancellationToken token = default(CancellationToken)) { } + void Function(string str, System.Guid[] guids, CancellationToken token = default(CancellationToken)) { } } """; var after = /* lang=c#-test */ """ @@ -164,15 +164,15 @@ void Function(string str, params System.Guid[] guids) { } using MyContext = Xunit.TestContext; public class TestClass { - [Xunit.Fact] - public void TestMethod() - { - Function("hello", new System.Guid[] { System.Guid.NewGuid(), System.Guid.NewGuid() }, MyContext.Current.CancellationToken); - } + [Xunit.Fact] + public void TestMethod() + { + Function("hello", new System.Guid[] { System.Guid.NewGuid(), System.Guid.NewGuid() }, MyContext.Current.CancellationToken); + } - void Function(string str, params System.Guid[] guids) { } + void Function(string str, params System.Guid[] guids) { } - void Function(string str, System.Guid[] guids, CancellationToken token = default(CancellationToken)) { } + void Function(string str, System.Guid[] guids, CancellationToken token = default(CancellationToken)) { } } """; @@ -188,15 +188,15 @@ public async Task UseCancellationTokenArgument_ParamsArgumentWithNoValues() using MyContext = Xunit.TestContext; public class TestClass { - [Xunit.Fact] - public void TestMethod() - { - [|Function()|]; - } + [Xunit.Fact] + public void TestMethod() + { + [|Function()|]; + } - void Function(params int[] integers) { } + void Function(params int[] integers) { } - void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } + void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } } """; var after = /* lang=c#-test */ """ @@ -205,15 +205,15 @@ void Function(params int[] integers) { } using MyContext = Xunit.TestContext; public class TestClass { - [Xunit.Fact] - public void TestMethod() - { - Function(new int[] { }, MyContext.Current.CancellationToken); - } + [Xunit.Fact] + public void TestMethod() + { + Function(new int[] { }, MyContext.Current.CancellationToken); + } - void Function(params int[] integers) { } + void Function(params int[] integers) { } - void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } + void Function(int[] integers, CancellationToken token = default(CancellationToken)) { } } """;