RunFormattingTestAsync(
+ input: """
+
+ """,
+ expected: """
+
+ """);
+
+ [FormattingTestFact]
+ internal Task TextArea_WithAttributes_IndentByOne()
+ => RunFormattingTestAsync(
+ input: """
+
+ """,
+ expected: """
+
+ """,
+ attributeIndentStyle: AttributeIndentStyle.IndentByOne);
+
[FormattingTestFact]
[WorkItem("https://github.com/dotnet/razor/issues/11777")]
public Task RangeFormat_AfterProperty()
diff --git a/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatDocument.cshtml b/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatDocument.cshtml
index 29a95b3bf6d..44e3f9d6bdc 100644
--- a/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatDocument.cshtml
+++ b/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatDocument.cshtml
@@ -16,6 +16,6 @@ test
@(Html.DropDownList("list")
- .ToString()
- )
+ .ToString()
+ )
diff --git a/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatOnPaste.cshtml b/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatOnPaste.cshtml
index f273d2aef49..3157af86440 100644
--- a/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatOnPaste.cshtml
+++ b/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatOnPaste.cshtml
@@ -47,14 +47,14 @@
@foreach (var item in ViewBag.RequestOrder)
-
-
-
+
+
-
+
+
diff --git a/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatSelection.cshtml b/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatSelection.cshtml
index 2e40c8ba43f..0038e564992 100644
--- a/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatSelection.cshtml
+++ b/src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/Formatting/TestFiles/Expected/FormatSelection.cshtml
@@ -25,29 +25,29 @@
}
- @functions {
+@functions {
- int userAge = 0;
+ int userAge = 0;
- string HelloMessage(string user)
- {
- var msg = "Hi " + user + "how are you?";
- return msg;
- }
+ string HelloMessage(string user)
+ {
+ var msg = "Hi " + user + "how are you?";
+ return msg;
+ }
- int Age
- {
- get
- {
- return userAge;
- }
- set
- {
- userAge = value;
- }
- }
+ int Age
+ {
+ get
+ {
+ return userAge;
}
-
+ set
+ {
+ userAge = value;
+ }
+ }
+}
+