Skip to content

Commit

Permalink
Merge branch 'indentationDown3' into indentationDown4
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Mar 29, 2022
2 parents db77c6a + 56650f0 commit abad43d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ $$)
End Class
</code>.Value.Replace(vbLf, vbCrLf)

Await ExpectException_TestAsync(code, 4, FormattingOptions.IndentStyle.Block)
Await ExpectException_TestAsync(code, 4, FormattingOptions2.IndentStyle.Block)
End Function

<Fact>
Expand All @@ -166,14 +166,14 @@ $$)
End Class
</code>.Value.Replace(vbLf, vbCrLf)

Await ExpectException_TestAsync(code, indentation:=0, indentStyle:=FormattingOptions.IndentStyle.None)
Await ExpectException_TestAsync(code, indentation:=0, indentStyle:=FormattingOptions2.IndentStyle.None)
End Function

Private Shared Async Function ExpectException_TestAsync(codeWithMarkup As String, indentation As Integer, Optional indentStyle As FormattingOptions.IndentStyle = FormattingOptions.IndentStyle.Smart) As Task
Private Shared Async Function ExpectException_TestAsync(codeWithMarkup As String, indentation As Integer, Optional indentStyle As FormattingOptions2.IndentStyle = FormattingOptions2.IndentStyle.Smart) As Task
Assert.NotNull(Await Record.ExceptionAsync(Function() TestAsync(codeWithMarkup, indentation, indentStyle:=indentStyle)))
End Function

Private Shared Async Function TestAsync(codeWithMarkup As String, indentation As Integer, Optional indentStyle As FormattingOptions.IndentStyle = FormattingOptions.IndentStyle.Smart) As Threading.Tasks.Task
Private Shared Async Function TestAsync(codeWithMarkup As String, indentation As Integer, Optional indentStyle As FormattingOptions2.IndentStyle = FormattingOptions2.IndentStyle.Smart) As Threading.Tasks.Task
Dim code As String = Nothing
Dim position As Integer = 0
MarkupTestFile.GetPosition(codeWithMarkup, code, position)
Expand Down

0 comments on commit abad43d

Please sign in to comment.