Skip to content

Commit

Permalink
Make test code whitespace consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Nov 30, 2024
1 parent 6b8aaa3 commit 8145ffe
Showing 1 changed file with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ """
Expand All @@ -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)) { }
}
""";

Expand All @@ -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 */ """
Expand All @@ -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)) { }
}
""";

Expand All @@ -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 */ """
Expand All @@ -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)) { }
}
""";

Expand Down

0 comments on commit 8145ffe

Please sign in to comment.