Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit e55339b

Browse files
committed
Fix file formatting.
1 parent ec60ab2 commit e55339b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Analysis/Engine/Test/FluentAssertions/TextEditCollectionAssertions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
namespace Microsoft.PythonTools.Analysis.FluentAssertions {
2828
[ExcludeFromCodeCoverage]
2929
internal sealed class TextEditCollectionAssertions : SelfReferencingCollectionAssertions<TextEdit, TextEditCollectionAssertions> {
30-
public TextEditCollectionAssertions(IEnumerable<TextEdit> references) : base(references) {}
30+
public TextEditCollectionAssertions(IEnumerable<TextEdit> references) : base(references) { }
3131

3232
protected override string Identifier => nameof(TextEdit) + "Collection";
3333

34-
34+
3535
[CustomAssertion]
3636
public AndConstraint<TextEditCollectionAssertions> OnlyHaveTextEdit(string expectedText, (int startLine, int startCharacter, int endLine, int endCharacter) expectedRange, string because = "", params object[] reasonArgs)
37-
=> OnlyHaveTextEdits(new []{(expectedText, expectedRange)}, because, reasonArgs);
37+
=> OnlyHaveTextEdits(new[] {(expectedText, expectedRange)}, because, reasonArgs);
3838

3939
[CustomAssertion]
4040
public AndConstraint<TextEditCollectionAssertions> OnlyHaveTextEdits(params (string expectedText, (int startLine, int startCharacter, int endLine, int endCharacter) expectedRange)[] textEdits)
@@ -64,14 +64,14 @@ public AndConstraint<TextEditCollectionAssertions> OnlyHaveTextEdits(IEnumerable
6464

6565
return new AndConstraint<TextEditCollectionAssertions>(this);
6666
}
67-
67+
6868
[CustomAssertion]
6969
public AndConstraint<TextEditCollectionAssertions> HaveTextEditAt(string expectedText, (int startLine, int startCharacter, int endLine, int endCharacter) expectedRange, string because = "", params object[] reasonArgs) {
7070
var range = new Range {
7171
start = new Position { line = expectedRange.startLine, character = expectedRange.startCharacter },
7272
end = new Position { line = expectedRange.endLine, character = expectedRange.endCharacter }
7373
};
74-
74+
7575
var errorMessage = GetHaveTextEditErrorMessage(expectedText, range);
7676
if (errorMessage != string.Empty) {
7777
var assertion = Execute.Assertion.BecauseOf(because, reasonArgs);
@@ -99,8 +99,8 @@ private string GetHaveTextEditErrorMessage(string expectedText, Range expectedRa
9999

100100
if (candidatesWithRange.Length == 0) {
101101
return "Expected {context:subject} to have text edit with newText \'{expectedText}\' in range {expectedRange}{reason}, but "
102-
+ (candidates.Length == 1
103-
? $"it has range {candidates[0].range.ToString()}"
102+
+ (candidates.Length == 1
103+
? $"it has range {candidates[0].range.ToString()}"
104104
: $"they are in ranges {string.Join(", ", candidates.Select(te => te.range.ToString()))}");
105105
}
106106

0 commit comments

Comments
 (0)